mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-07 12:30:57 +00:00
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:
parent
11910cf7e3
commit
43199a036d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user