[LVer] Fix FIXME: hide addPHINodes, NFC
authorAdam Nemet <anemet@apple.com>
Thu, 20 Aug 2015 17:22:29 +0000 (17:22 +0000)
committerAdam Nemet <anemet@apple.com>
Thu, 20 Aug 2015 17:22:29 +0000 (17:22 +0000)
commit027e2d7d09f1ca816389f7a32095d7113ec4dede
tree4a9af18690cd7841bc3a2606349a43d4a7aeaac5
parentd44dd1789ad34be8e9537f544fd3e815d7a4b721
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245579 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/LoopVersioning.h
lib/Transforms/Scalar/LoopDistribute.cpp
lib/Transforms/Utils/LoopVersioning.cpp