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;