aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Scalar/LoopDistribute.cpp
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2015-08-20 17:22:29 +0000
committerAdam Nemet <anemet@apple.com>2015-08-20 17:22:29 +0000
commite48134093df8db0c0bf41079d19f8fa785ed4f05 (patch)
tree3162f95a883779bc76a454170481e142644f3a06 /llvm/lib/Transforms/Scalar/LoopDistribute.cpp
parentbf17009a9739f9060bb0ba08a1123c3d2c024969 (diff)
downloadllvm-e48134093df8db0c0bf41079d19f8fa785ed4f05.zip
llvm-e48134093df8db0c0bf41079d19f8fa785ed4f05.tar.gz
llvm-e48134093df8db0c0bf41079d19f8fa785ed4f05.tar.bz2
[LVer] Fix FIXME: hide addPHINodes, NFC
Since Ashutosh made findDefsUsedOutsideOfLoop public, we can clean this up. Now clients that don't compute DefsUsedOutsideOfLoop can just call versionLoop() and computing DefsUsedOutsideOfLoop will happen implicitly. With that there is no reason to expose addPHINodes anymore. Ashutosh, you can now drop the calls to findDefsUsedOutsideOfLoop and addPHINodes in LVerLICM and things should just work. llvm-svn: 245579
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopDistribute.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopDistribute.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopDistribute.cpp b/llvm/lib/Transforms/Scalar/LoopDistribute.cpp
index 82e2f48..a776964 100644
--- a/llvm/lib/Transforms/Scalar/LoopDistribute.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopDistribute.cpp
@@ -776,8 +776,7 @@ private:
DEBUG(dbgs() << "\nPointers:\n");
DEBUG(LAI.getRuntimePointerChecking()->printChecks(dbgs(), Checks));
LoopVersioning LVer(std::move(Checks), LAI, L, LI, DT);
- LVer.versionLoop();
- LVer.addPHINodes(DefsUsedOutside);
+ LVer.versionLoop(DefsUsedOutside);
}
// Create identical copies of the original loop for each partition and hook