forked from OSchip/llvm-project
parent
48ea217fbf
commit
12565de705
|
@ -213,6 +213,9 @@ bool TwoAddressInstructionPass::Sink3AddrInstruction(MachineBasicBlock *MBB,
|
|||
unsigned NumVisited = 0;
|
||||
for (MachineBasicBlock::iterator I = llvm::next(OldPos); I != KillPos; ++I) {
|
||||
MachineInstr *OtherMI = I;
|
||||
// DBG_VALUE cannot be counted against the limit.
|
||||
if (OtherMI->isDebugValue())
|
||||
continue;
|
||||
if (NumVisited > 30) // FIXME: Arbitrary limit to reduce compile time cost.
|
||||
return false;
|
||||
++NumVisited;
|
||||
|
|
Loading…
Reference in New Issue