Skip to content

Commit e65c594

Browse files
committed
Fix to kill flags not needed
1 parent 181be8d commit e65c594

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/RISCV/RISCVLoadStoreOptimizer.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,8 +509,7 @@ void RISCVLoadStoreOpt::splitLdSdIntoTwo(MachineBasicBlock &MBB,
509509
FirstReg != SecondReg &&
510510
"First register and second register is impossible to be same register");
511511
MIB1 = BuildMI(MBB, MBBI, DL, TII->get(Opc))
512-
.addReg(FirstReg,
513-
getKillRegState(FirstOp.isKill() && FirstReg != BaseReg))
512+
.addReg(FirstReg, getKillRegState(FirstOp.isKill()))
514513
.addReg(BaseReg);
515514

516515
MIB2 = BuildMI(MBB, MBBI, DL, TII->get(Opc))

0 commit comments

Comments
 (0)