[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Apr 16 17:41:05 PDT 2003


Changes in directory llvm/lib/Transforms/Scalar:

InstructionCombining.cpp updated: 1.78 -> 1.79

---
Log message:

Change the interface to constant expressions to allow automatic folding


---
Diffs of the changes:

Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.78 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.79
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.78	Mon Mar 10 18:12:48 2003
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp	Wed Apr 16 17:40:49 2003
@@ -1011,7 +1011,7 @@
       Indices.push_back(cast<Constant>(*I));
 
     if (I == E) {  // If they are all constants...
-      ConstantExpr *CE =
+      Constant *CE =
         ConstantExpr::getGetElementPtr(ConstantPointerRef::get(GV), Indices);
 
       // Replace all uses of the GEP with the new constexpr...





More information about the llvm-commits mailing list