mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-22 19:49:49 +00:00
Fix debug_value handling.
llvm-svn: 98224
This commit is contained in:
parent
687d99cfa8
commit
15ff882aa1
@ -122,8 +122,12 @@ bool MachineCSE::isPhysDefTriviallyDead(unsigned Reg,
|
||||
// Reached end of block, register is obviously dead.
|
||||
return true;
|
||||
|
||||
if (I->isDebugValue())
|
||||
if (I->isDebugValue()) {
|
||||
// These must not count against the limit.
|
||||
++LookAheadLeft;
|
||||
++I;
|
||||
continue;
|
||||
}
|
||||
bool SeenDef = false;
|
||||
for (unsigned i = 0, e = I->getNumOperands(); i != e; ++i) {
|
||||
const MachineOperand &MO = I->getOperand(i);
|
||||
@ -188,7 +192,7 @@ static bool isCopy(const MachineInstr *MI, const TargetInstrInfo *TII) {
|
||||
|
||||
bool MachineCSE::isCSECandidate(MachineInstr *MI) {
|
||||
if (MI->isLabel() || MI->isPHI() || MI->isImplicitDef() ||
|
||||
MI->isKill() || MI->isInlineAsm())
|
||||
MI->isKill() || MI->isInlineAsm() || MI->isDebugValue())
|
||||
return false;
|
||||
|
||||
// Ignore copies.
|
||||
|
Loading…
Reference in New Issue
Block a user