diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-10 22:37:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-10 22:37:17 +0000 |
commit | 43199a036d5c191fc8c9ab4ba5a641ffeb3154d2 (patch) | |
tree | 1e0dc3c444c2848f8cbae0fed225a1d038a5ff03 /lib/Transforms | |
parent | 11910cf7e316a1349a624882af83605fbabe4aa5 (diff) | |
download | external_llvm-43199a036d5c191fc8c9ab4ba5a641ffeb3154d2.zip external_llvm-43199a036d5c191fc8c9ab4ba5a641ffeb3154d2.tar.gz external_llvm-43199a036d5c191fc8c9ab4ba5a641ffeb3154d2.tar.bz2 |
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/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 7092989..1ff2c0f 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; |