1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Disable folding g-e-p instructions into loads and stores.

llvm-svn: 2870
This commit is contained in:
Chris Lattner 2002-07-10 22:37:17 +00:00
parent a6842aa353
commit 83577a047e

View File

@ -499,6 +499,8 @@ Instruction *InstCombiner::visitGetElementPtrInst(GetElementPtrInst &GEP) {
// instruction // instruction
// //
Instruction *InstCombiner::visitMemAccessInst(MemAccessInst &MAI) { Instruction *InstCombiner::visitMemAccessInst(MemAccessInst &MAI) {
return 0; // DISABLE FOLDING. GEP is now the only MAI!
GetElementPtrInst *Src = GetElementPtrInst *Src =
dyn_cast<GetElementPtrInst>(MAI.getPointerOperand()); dyn_cast<GetElementPtrInst>(MAI.getPointerOperand());
if (!Src) return 0; if (!Src) return 0;