From: Chris Lattner Date: Wed, 10 Jul 2002 22:37:17 +0000 (+0000) Subject: Disable folding g-e-p instructions into loads and stores. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=43199a036d5c191fc8c9ab4ba5a641ffeb3154d2;p=oota-llvm.git 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 --- diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 7092989bf44..1ff2c0fecdd 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(MAI.getPointerOperand()); if (!Src) return 0;