summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/LoopVersioningLICM.cpp
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-06-08 20:15:37 +0000
committerXinliang David Li <davidxl@google.com>2016-06-08 20:15:37 +0000
commit572135f7179a5d5d3171b8b443416a1aba14fb4f (patch)
tree6f0d30b79d0fb876b660204c705b9cfb5c1f14f5 /llvm/lib/Transforms/Scalar/LoopVersioningLICM.cpp
parent10a2c38d8382d33c2022ecf66e3cfa4a1de3000b (diff)
downloadbcm5719-llvm-572135f7179a5d5d3171b8b443416a1aba14fb4f.tar.gz
bcm5719-llvm-572135f7179a5d5d3171b8b443416a1aba14fb4f.zip
[PM] Refector LoopAccessInfo analysis code
This is the preparation patch to port the analysis to new PM Differential Revision: http://reviews.llvm.org/D20560 llvm-svn: 272194
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopVersioningLICM.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopVersioningLICM.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopVersioningLICM.cpp b/llvm/lib/Transforms/Scalar/LoopVersioningLICM.cpp
index 7ccf2271e62..dab4ba16714 100644
--- a/llvm/lib/Transforms/Scalar/LoopVersioningLICM.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopVersioningLICM.cpp
@@ -411,7 +411,7 @@ bool LoopVersioningLICM::legalLoopInstructions() {
return false;
}
// Get LoopAccessInfo from current loop.
- LAI = &LAA->getInfo(CurLoop, Strides);
+ LAI = &LAA->getResult().getInfo(CurLoop, Strides);
// Check LoopAccessInfo for need of runtime check.
if (LAI->getRuntimePointerChecking()->getChecks().empty()) {
DEBUG(dbgs() << " LAA: Runtime check not found !!\n");
OpenPOWER on IntegriCloud