mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Migrate SeparateConstOffsetFromGEP to use a Function with
getSubtarget. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227172 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
90c42ddc62
commit
c2601d2f12
@ -910,7 +910,7 @@ bool SeparateConstOffsetFromGEP::splitGEP(GetElementPtrInst *GEP) {
|
||||
if (LowerGEP) {
|
||||
// As currently BasicAA does not analyze ptrtoint/inttoptr, do not lower to
|
||||
// arithmetic operations if the target uses alias analysis in codegen.
|
||||
if (TM && TM->getSubtarget<TargetSubtargetInfo>().useAA())
|
||||
if (TM && TM->getSubtargetImpl(*GEP->getParent()->getParent())->useAA())
|
||||
lowerToSingleIndexGEPs(GEP, AccumulativeByteOffset);
|
||||
else
|
||||
lowerToArithmetics(GEP, AccumulativeByteOffset);
|
||||
|
Loading…
Reference in New Issue
Block a user