File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3947,22 +3947,22 @@ MachineInstr *SIInstrInfo::convertToThreeAddress(MachineInstr &MI,
3947
3947
(ST.getConstantBusLimit (Opc) > 1 || !Src0->isReg () ||
3948
3948
!RI.isSGPRReg (MBB.getParent ()->getRegInfo (), Src0->getReg ()))) {
3949
3949
MachineInstr *DefMI;
3950
- const auto killDef = [&](SlotIndex NewIdx ) -> void {
3950
+ const auto killDef = [&](SlotIndex OldDefIdx ) -> void {
3951
3951
const MachineRegisterInfo &MRI = MBB.getParent ()->getRegInfo ();
3952
3952
// The only user is the instruction which will be killed.
3953
3953
Register DefReg = DefMI->getOperand (0 ).getReg ();
3954
3954
3955
3955
if (LIS) {
3956
3956
LiveInterval &DefLI = LIS->getInterval (DefReg);
3957
- LiveRange::Segment *OldSeg = DefLI.getSegmentContaining (NewIdx );
3957
+ LiveRange::Segment *OldSeg = DefLI.getSegmentContaining (OldDefIdx );
3958
3958
assert (OldSeg && " segment not found for instruction in LiveInterval" );
3959
3959
3960
- if (OldSeg->end == NewIdx .getRegSlot ()) {
3960
+ if (OldSeg->end == OldDefIdx .getRegSlot ()) {
3961
3961
DefLI.removeSegment (*OldSeg, true );
3962
3962
3963
3963
for (auto &SR : DefLI.subranges ()) {
3964
- LiveRange::Segment *OldSegSR = SR.getSegmentContaining (NewIdx );
3965
- if (OldSegSR->end == NewIdx .getRegSlot ())
3964
+ LiveRange::Segment *OldSegSR = SR.getSegmentContaining (OldDefIdx );
3965
+ if (OldSegSR->end == OldDefIdx .getRegSlot ())
3966
3966
SR.removeSegment (*OldSegSR, true );
3967
3967
}
3968
3968
You can’t perform that action at this time.
0 commit comments