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

Chris Lattner sabre at nondot.org
Wed Nov 8 10:49:48 PST 2006



Changes in directory llvm/lib/Transforms/Scalar:

InstructionCombining.cpp updated: 1.537 -> 1.538
---
Log message:

disable this factoring optzn for GEPs for now, this severely pessimizes some
loops.


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

 InstructionCombining.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.537 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.538
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.537	Wed Nov  8 00:47:33 2006
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp	Wed Nov  8 12:49:31 2006
@@ -6878,7 +6878,7 @@
         !isSafeToSinkLoad(LI))
       return 0;
   } else if (isa<GetElementPtrInst>(FirstInst)) {
-    if (FirstInst->getNumOperands() == 2)
+    if (0 && FirstInst->getNumOperands() == 2)
       return FoldPHIArgBinOpIntoPHI(PN);
     // Can't handle general GEPs yet.
     return 0;






More information about the llvm-commits mailing list