diff options
author | Adam Nemet <anemet@apple.com> | 2015-07-14 22:32:44 +0000 |
---|---|---|
committer | Adam Nemet <anemet@apple.com> | 2015-07-14 22:32:44 +0000 |
commit | 7cdebac0c83b51b4252584ef1513d8e6a2dbff8b (patch) | |
tree | 5ad930945dbae351b0d6fc709f6042101d147b69 /llvm/lib/Transforms/Scalar/LoopDistribute.cpp | |
parent | 9bbad03b9887e41bc0d5dccecc01237f39022102 (diff) | |
download | bcm5719-llvm-7cdebac0c83b51b4252584ef1513d8e6a2dbff8b.tar.gz bcm5719-llvm-7cdebac0c83b51b4252584ef1513d8e6a2dbff8b.zip |
[LAA] Lift RuntimePointerCheck out of LoopAccessInfo, NFC
I am planning to add more nested classes inside RuntimePointerCheck so
all these triple-nesting would be hard to follow.
Also rename it to RuntimePointerChecking (i.e. append 'ing').
llvm-svn: 242218
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopDistribute.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopDistribute.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopDistribute.cpp b/llvm/lib/Transforms/Scalar/LoopDistribute.cpp index 75983222010..3380af29ca8 100644 --- a/llvm/lib/Transforms/Scalar/LoopDistribute.cpp +++ b/llvm/lib/Transforms/Scalar/LoopDistribute.cpp @@ -432,8 +432,7 @@ public: /// partitions its entry is set to -1. SmallVector<int, 8> computePartitionSetForPointers(const LoopAccessInfo &LAI) { - const LoopAccessInfo::RuntimePointerCheck *RtPtrCheck = - LAI.getRuntimePointerCheck(); + const RuntimePointerChecking *RtPtrCheck = LAI.getRuntimePointerChecking(); unsigned N = RtPtrCheck->Pointers.size(); SmallVector<int, 8> PtrToPartitions(N); @@ -753,7 +752,7 @@ private: LoopVersioning LVer(LAI, L, LI, DT, &PtrToPartition); if (LVer.needsRuntimeChecks()) { DEBUG(dbgs() << "\nPointers:\n"); - DEBUG(LAI.getRuntimePointerCheck()->print(dbgs(), 0, &PtrToPartition)); + DEBUG(LAI.getRuntimePointerChecking()->print(dbgs(), 0, &PtrToPartition)); LVer.versionLoop(this); LVer.addPHINodes(DefsUsedOutside); } |