[llvm-commits] [llvm] r104408 - /llvm/trunk/lib/CodeGen/MachineCSE.cpp

Eric Christopher echristo at apple.com
Fri May 21 16:40:04 PDT 2010


Author: echristo
Date: Fri May 21 18:40:03 2010
New Revision: 104408

URL: http://llvm.org/viewvc/llvm-project?rev=104408&view=rev
Log:
Make this LookAheadLimit, not the uninitialized LookAheadLeft.

Evan please verify!

Modified:
    llvm/trunk/lib/CodeGen/MachineCSE.cpp

Modified: llvm/trunk/lib/CodeGen/MachineCSE.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineCSE.cpp?rev=104408&r1=104407&r2=104408&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineCSE.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineCSE.cpp Fri May 21 18:40:03 2010
@@ -137,7 +137,7 @@
 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())





More information about the llvm-commits mailing list