[llvm-commits] CVS: llvm/lib/VMCore/Constants.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Jan 12 14:42:04 PST 2004


Changes in directory llvm/lib/VMCore:

Constants.cpp updated: 1.66 -> 1.67

---
Log message:

Eliminate ConstantFoldShiftInstruction reference


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

Index: llvm/lib/VMCore/Constants.cpp
diff -u llvm/lib/VMCore/Constants.cpp:1.66 llvm/lib/VMCore/Constants.cpp:1.67
--- llvm/lib/VMCore/Constants.cpp:1.66	Mon Jan 12 13:12:58 2004
+++ llvm/lib/VMCore/Constants.cpp	Mon Jan 12 14:40:42 2004
@@ -961,7 +961,7 @@
   assert(C1->getType()->isIntegral() && C2->getType() == Type::UByteTy &&
          "Invalid operand types for Shift constant expr!");
 
-  if (Constant *FC = ConstantFoldShiftInstruction(Opcode, C1, C2))
+  if (Constant *FC = ConstantFoldBinaryInstruction(Opcode, C1, C2))
     return FC;          // Fold a few common cases...
 
   // Look up the constant in the table first to ensure uniqueness





More information about the llvm-commits mailing list