summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-01-27 07:16:37 +0000
committerEric Christopher <echristo@gmail.com>2015-01-27 07:16:37 +0000
commite38c8d4aa92769e7d6af523310844fa361852d74 (patch)
treeee48207ede93f53b8d38031ada8e75bbf31a9937
parent4c82daea60cc6f51a0797ae21c0bcc6d38e56853 (diff)
downloadbcm5719-llvm-e38c8d4aa92769e7d6af523310844fa361852d74.tar.gz
bcm5719-llvm-e38c8d4aa92769e7d6af523310844fa361852d74.zip
Migrate SeparateConstOffsetFromGEP to use a Function with
getSubtarget. llvm-svn: 227172
-rw-r--r--llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp b/llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
index 6157746af48..0c70d0faaa1 100644
--- a/llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
+++ b/llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
@@ -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);
OpenPOWER on IntegriCloud