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

Chris Lattner lattner at cs.uiuc.edu
Fri Oct 8 12:15:58 PDT 2004



Changes in directory llvm/lib/Transforms/Scalar:

InstructionCombining.cpp updated: 1.263 -> 1.264
---
Log message:

Temporarily disable a buggy transformation until it can be fixed.  This fixes
254.gap.


---
Diffs of the changes:  (+5 -0)

Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.263 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.264
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.263	Fri Oct  8 00:07:56 2004
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp	Fri Oct  8 14:15:44 2004
@@ -2146,6 +2146,11 @@
               LoOverflow = HiOverflow = ProdOV;
               HiBound = cast<ConstantInt>(ConstantExpr::getSub(Prod, DivRHS));
             }
+
+            /// FIXME: This code is disabled, because we do not compile the
+            /// divisor case < 0 correctly.  For example, this code is incorrect
+            /// in the case of "X/-10 < 1".
+            LoBound = 0;
           }
 
           if (LoBound) {






More information about the llvm-commits mailing list