[LoopDist] Rename RuntimeCheckEmitter to LoopVersioning, NFC

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240165 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Adam Nemet 2015-06-19 19:32:48 +00:00
parent 5af96d3a49
commit d8c98f16bb

View File

@ -630,11 +630,11 @@ private:
}; };
/// \brief Handles the loop versioning based on memchecks. /// \brief Handles the loop versioning based on memchecks.
class RuntimeCheckEmitter { class LoopVersioning {
public: public:
RuntimeCheckEmitter(const LoopAccessInfo &LAI, Loop *L, LoopInfo *LI, LoopVersioning(const LoopAccessInfo &LAI, Loop *L, LoopInfo *LI,
DominatorTree *DT, DominatorTree *DT,
const SmallVector<int, 8> *PtrToPartition = nullptr) const SmallVector<int, 8> *PtrToPartition = nullptr)
: OrigLoop(L), NonDistributedLoop(nullptr), : OrigLoop(L), NonDistributedLoop(nullptr),
PtrToPartition(PtrToPartition), LAI(LAI), LI(LI), DT(DT) {} 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 // If we need run-time checks to disambiguate pointers are run-time, version
// the loop now. // the loop now.
auto PtrToPartition = Partitions.computePartitionSetForPointers(LAI); auto PtrToPartition = Partitions.computePartitionSetForPointers(LAI);
RuntimeCheckEmitter RtCheckEmitter(LAI, L, LI, DT, &PtrToPartition); LoopVersioning LVer(LAI, L, LI, DT, &PtrToPartition);
if (RtCheckEmitter.needsRuntimeChecks()) { if (LVer.needsRuntimeChecks()) {
DEBUG(dbgs() << "\nPointers:\n"); DEBUG(dbgs() << "\nPointers:\n");
DEBUG(LAI.getRuntimePointerCheck()->print(dbgs(), 0, &PtrToPartition)); DEBUG(LAI.getRuntimePointerCheck()->print(dbgs(), 0, &PtrToPartition));
RtCheckEmitter.versionLoop(this); LVer.versionLoop(this);
RtCheckEmitter.addPHINodes(DefsUsedOutside); LVer.addPHINodes(DefsUsedOutside);
} }
// Create identical copies of the original loop for each partition and hook // Create identical copies of the original loop for each partition and hook