mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-03 14:31:10 +00:00
Don't allow DBG_VALUE to affect codegen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95889 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
27bb8d0a88
commit
3bfef03eb6
@ -213,6 +213,9 @@ bool TwoAddressInstructionPass::Sink3AddrInstruction(MachineBasicBlock *MBB,
|
|||||||
unsigned NumVisited = 0;
|
unsigned NumVisited = 0;
|
||||||
for (MachineBasicBlock::iterator I = llvm::next(OldPos); I != KillPos; ++I) {
|
for (MachineBasicBlock::iterator I = llvm::next(OldPos); I != KillPos; ++I) {
|
||||||
MachineInstr *OtherMI = 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.
|
if (NumVisited > 30) // FIXME: Arbitrary limit to reduce compile time cost.
|
||||||
return false;
|
return false;
|
||||||
++NumVisited;
|
++NumVisited;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user