Skip to content

Commit a13fa76

Browse files
author
git apple-llvm automerger
committed
Merge commit '4536ad47579d' from llvm.org/main into next
2 parents 6ae87f9 + 4536ad4 commit a13fa76

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1551,7 +1551,9 @@ void RISCVInsertVSETVLI::doLocalPostpass(MachineBasicBlock &MBB) {
15511551
ToDelete.push_back(&MI);
15521552
// Leave NextMI unchanged
15531553
continue;
1554-
} else if (canMutatePriorConfig(MI, *NextMI, Used, *MRI)) {
1554+
}
1555+
1556+
if (canMutatePriorConfig(MI, *NextMI, Used, *MRI)) {
15551557
if (!isVLPreservingConfig(*NextMI)) {
15561558
MI.getOperand(0).setReg(NextMI->getOperand(0).getReg());
15571559
MI.getOperand(0).setIsDead(false);

0 commit comments

Comments
 (0)