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:
parent
a6842aa353
commit
83577a047e
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user