From: Adam Nemet <anemet@apple.com> Date: Fri, 19 Jun 2015 19:32:48 +0000 (+0000) Subject: [LoopDist] Rename RuntimeCheckEmitter to LoopVersioning, NFC X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d8c98f16bb69fb5cc5ed0c572ca732cbc1441a12;p=oota-llvm.git [LoopDist] Rename RuntimeCheckEmitter to LoopVersioning, NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240165 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/LoopDistribute.cpp b/lib/Transforms/Scalar/LoopDistribute.cpp index 7e9efa25070..d21a7db48c5 100644 --- a/lib/Transforms/Scalar/LoopDistribute.cpp +++ b/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