[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaISelPattern.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Aug 2 12:35:41 PDT 2005



Changes in directory llvm/lib/Target/Alpha:

AlphaISelPattern.cpp updated: 1.158 -> 1.159
---
Log message:

one more hunk that got dropped


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

 AlphaISelPattern.cpp |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)


Index: llvm/lib/Target/Alpha/AlphaISelPattern.cpp
diff -u llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.158 llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.159
--- llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.158	Tue Aug  2 14:25:03 2005
+++ llvm/lib/Target/Alpha/AlphaISelPattern.cpp	Tue Aug  2 14:35:29 2005
@@ -1833,9 +1833,8 @@
       //check if we can convert into a shift!
       if ((CSD = dyn_cast<ConstantSDNode>(N.getOperand(1).Val)) &&
           (int64_t)CSD->getSignExtended() != 0 &&
-          ExactLog2(llabs(CSD->getSignExtended())) != 0)
-      {
-        unsigned k = ExactLog2(llabs(CSD->getSignExtended()));
+          isPowerOf2_64(llabs(CSD->getSignExtended()))) {
+        unsigned k = Log2_64(llabs(CSD->getSignExtended()));
         Tmp1 = SelectExpr(N.getOperand(0));
         if (k == 1)
           Tmp2 = Tmp1;






More information about the llvm-commits mailing list