diff options
author | Adam Nemet <anemet@apple.com> | 2015-06-19 19:32:48 +0000 |
---|---|---|
committer | Adam Nemet <anemet@apple.com> | 2015-06-19 19:32:48 +0000 |
commit | 7632500d7aa98bda9bd85dc2950865ce99876eec (patch) | |
tree | 0db644d11a1eac7ce9fc347c305ac75668e42956 /llvm/lib/Transforms/Scalar/LoopDistribute.cpp | |
parent | 772a150614970e7f5edabe5fd09ed1ca53db739d (diff) | |
download | llvm-7632500d7aa98bda9bd85dc2950865ce99876eec.zip llvm-7632500d7aa98bda9bd85dc2950865ce99876eec.tar.gz llvm-7632500d7aa98bda9bd85dc2950865ce99876eec.tar.bz2 |
[LoopDist] Rename RuntimeCheckEmitter to LoopVersioning, NFC
llvm-svn: 240165
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopDistribute.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopDistribute.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopDistribute.cpp b/llvm/lib/Transforms/Scalar/LoopDistribute.cpp index 7e9efa2..d21a7db 100644 --- a/llvm/lib/Transforms/Scalar/LoopDistribute.cpp +++ b/llvm/lib/Transforms/Scalar/LoopDistribute.cpp @@ -630,11 +630,11 @@ private: }; /// \brief Handles the loop versioning based on memchecks. -class RuntimeCheckEmitter { +class LoopVersioning { public: - RuntimeCheckEmitter(const LoopAccessInfo &LAI, Loop *L, LoopInfo *LI, - DominatorTree *DT, - const SmallVector<int, 8> *PtrToPartition = nullptr) + LoopVersioning(const LoopAccessInfo &LAI, Loop *L, LoopInfo *LI, + DominatorTree *DT, + const SmallVector<int, 8> *PtrToPartition = nullptr) : OrigLoop(L), NonDistributedLoop(nullptr), PtrToPartition(PtrToPartition), LAI(LAI), LI(LI), DT(DT) {} @@ -922,12 +922,12 @@ private: // If we need run-time checks to disambiguate pointers are run-time, version // the loop now. auto PtrToPartition = Partitions.computePartitionSetForPointers(LAI); - RuntimeCheckEmitter RtCheckEmitter(LAI, L, LI, DT, &PtrToPartition); - if (RtCheckEmitter.needsRuntimeChecks()) { + LoopVersioning LVer(LAI, L, LI, DT, &PtrToPartition); + if (LVer.needsRuntimeChecks()) { DEBUG(dbgs() << "\nPointers:\n"); DEBUG(LAI.getRuntimePointerCheck()->print(dbgs(), 0, &PtrToPartition)); - RtCheckEmitter.versionLoop(this); - RtCheckEmitter.addPHINodes(DefsUsedOutside); + LVer.versionLoop(this); + LVer.addPHINodes(DefsUsedOutside); } // Create identical copies of the original loop for each partition and hook |