diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-11-08 18:49:31 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-11-08 18:49:31 +0000 |
| commit | a3acfca920247628c64e814d7631f3c21d8f9f10 (patch) | |
| tree | 82de879f126c9fad2abe7e5abb047477df3828f3 | |
| parent | 7b6fb8048e85bae813fe316115f37eee4581a1ae (diff) | |
| download | bcm5719-llvm-a3acfca920247628c64e814d7631f3c21d8f9f10.tar.gz bcm5719-llvm-a3acfca920247628c64e814d7631f3c21d8f9f10.zip | |
disable this factoring optzn for GEPs for now, this severely pessimizes some
loops.
llvm-svn: 31560
| -rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 5da640983eb..9cba3b42277 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -6878,7 +6878,7 @@ Instruction *InstCombiner::FoldPHIArgOpIntoPHI(PHINode &PN) { !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; |

