mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-17 16:46:50 +00:00
dbg_value may end a block.
llvm-svn: 99378
This commit is contained in:
parent
d31726dba1
commit
3ae9b98d7f
@ -118,14 +118,14 @@ bool MachineCSE::isPhysDefTriviallyDead(unsigned Reg,
|
||||
MachineBasicBlock::const_iterator E) {
|
||||
unsigned LookAheadLeft = 5;
|
||||
while (LookAheadLeft) {
|
||||
// Skip over dbg_value's.
|
||||
while (I != E && I->isDebugValue())
|
||||
++I;
|
||||
|
||||
if (I == E)
|
||||
// Reached end of block, register is obviously dead.
|
||||
return true;
|
||||
|
||||
// Skip over dbg_value's.
|
||||
while (I->isDebugValue())
|
||||
++I;
|
||||
|
||||
bool SeenDef = false;
|
||||
for (unsigned i = 0, e = I->getNumOperands(); i != e; ++i) {
|
||||
const MachineOperand &MO = I->getOperand(i);
|
||||
|
Loading…
Reference in New Issue
Block a user