From 83577a047eb2dbdceb4e8f4f63a6e38c3c0a9bd7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 10 Jul 2002 22:37:17 +0000 Subject: [PATCH] Disable folding g-e-p instructions into loads and stores. llvm-svn: 2870 --- lib/Transforms/Scalar/InstructionCombining.cpp | 2 ++ 1 file changed, 2 insertions(+) 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;