Make this LookAheadLimit, not the uninitialized LookAheadLeft.

Evan please verify!

llvm-svn: 104408
This commit is contained in:
Eric Christopher 2010-05-21 23:40:03 +00:00
parent d5c391bba6
commit 8f296fd844

View File

@ -137,7 +137,7 @@ bool
MachineCSE::isPhysDefTriviallyDead(unsigned Reg,
MachineBasicBlock::const_iterator I,
MachineBasicBlock::const_iterator E) const {
unsigned LookAheadLeft = LookAheadLeft;
unsigned LookAheadLeft = LookAheadLimit;
while (LookAheadLeft) {
// Skip over dbg_value's.
while (I != E && I->isDebugValue())