Make this LookAheadLimit, not the uninitialized LookAheadLeft.

Evan please verify!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104408 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2010-05-21 23:40:03 +00:00
parent c2685a9c98
commit e81d010589

View File

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