mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +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…
x
Reference in New Issue
Block a user