summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-10 22:37:17 +0000
committerChris Lattner <sabre@nondot.org>2002-07-10 22:37:17 +0000
commit43199a036d5c191fc8c9ab4ba5a641ffeb3154d2 (patch)
tree1e0dc3c444c2848f8cbae0fed225a1d038a5ff03 /lib
parent11910cf7e316a1349a624882af83605fbabe4aa5 (diff)
downloadllvm-43199a036d5c191fc8c9ab4ba5a641ffeb3154d2.tar.gz
llvm-43199a036d5c191fc8c9ab4ba5a641ffeb3154d2.tar.bz2
llvm-43199a036d5c191fc8c9ab4ba5a641ffeb3154d2.tar.xz
Disable folding g-e-p instructions into loads and stores.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2870 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp
index 7092989bf4..1ff2c0fecd 100644
--- a/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -499,6 +499,8 @@ Instruction *InstCombiner::visitGetElementPtrInst(GetElementPtrInst &GEP) {
// instruction
//
Instruction *InstCombiner::visitMemAccessInst(MemAccessInst &MAI) {
+ return 0; // DISABLE FOLDING. GEP is now the only MAI!
+
GetElementPtrInst *Src =
dyn_cast<GetElementPtrInst>(MAI.getPointerOperand());
if (!Src) return 0;