[llvm-commits] CVS: llvm/lib/Target/ARM/ARMISelLowering.cpp

Chris Lattner sabre at nondot.org
Wed Apr 11 09:17:30 PDT 2007



Changes in directory llvm/lib/Target/ARM:

ARMISelLowering.cpp updated: 1.42 -> 1.43
---
Log message:

Fix incorrect fall-throughs in addr mode code.  This fixes CodeGen/ARM/arm-negative-stride.ll


---
Diffs of the changes:  (+3 -3)

 ARMISelLowering.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/lib/Target/ARM/ARMISelLowering.cpp
diff -u llvm/lib/Target/ARM/ARMISelLowering.cpp:1.42 llvm/lib/Target/ARM/ARMISelLowering.cpp:1.43
--- llvm/lib/Target/ARM/ARMISelLowering.cpp:1.42	Mon Apr  9 22:48:29 2007
+++ llvm/lib/Target/ARM/ARMISelLowering.cpp	Wed Apr 11 11:17:12 2007
@@ -1386,13 +1386,13 @@
       if (Scale == 1)
         return true;
       // r + r << imm
-      if (!isPowerOf2_32(Scale & ~1))
-        return false;
+      return isPowerOf2_32(Scale & ~1);
     case MVT::i16:
       // r + r
       if (((unsigned)AM.HasBaseReg + Scale) <= 2)
         return true;
-
+      return false;
+      
     case MVT::isVoid:
       // Note, we allow "void" uses (basically, uses that aren't loads or
       // stores), because arm allows folding a scale into many arithmetic






More information about the llvm-commits mailing list