Skip to content

Commit da6cc49

Browse files
committed
Don't check debug uses
1 parent 7194163 commit da6cc49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/CalcSpillWeights.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ bool VirtRegAuxInfo::isRematerializable(const LiveInterval &LI,
128128
// If MI has register uses, it will only be rematerializable if its uses are
129129
// also live at the indices it will be rematerialized at.
130130
const MachineRegisterInfo &MRI = MI->getMF()->getRegInfo();
131-
for (MachineInstr &Use : MRI.use_instructions(Reg)) {
131+
for (MachineInstr &Use : MRI.use_nodbg_instructions(Reg)) {
132132
SlotIndex UseIdx = LIS.getInstructionIndex(Use);
133133
if (LI.getVNInfoAt(UseIdx) != VNI)
134134
continue;

0 commit comments

Comments
 (0)