[llvm-commits] [llvm] r113876 - /llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp

Gabor Greif ggreif at gmail.com
Tue Sep 14 15:25:16 PDT 2010


Author: ggreif
Date: Tue Sep 14 17:25:16 2010
New Revision: 113876

URL: http://llvm.org/viewvc/llvm-project?rev=113876&view=rev
Log:
an attempt to salvage the darwin9-powerpc buildbot, which could be miscompiling this line

Modified:
    llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp?rev=113876&r1=113875&r2=113876&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp Tue Sep 14 17:25:16 2010
@@ -1373,7 +1373,7 @@
     CmpValue = MI->getOperand(1).getImm();
     return true;
   case ARM::TSTri: {
-      if (MI->getParent()->begin() == MachineBasicBlock::const_iterator(MI))
+      if (&*MI->getParent()->begin() == MI)
         return false;
       const MachineInstr *AND = llvm::prior(MI);
       if (AND->getOpcode() != ARM::ANDri)
@@ -1385,6 +1385,7 @@
         return true;
       }
     }
+    break;
   }
 
   return false;





More information about the llvm-commits mailing list