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
This commit is contained in:
Chris Lattner 2002-07-10 22:37:17 +00:00
parent 11910cf7e3
commit 43199a036d

View File

@ -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;