[LoopDist/LoopVer] Move LoopVersioning to a new module, NFC
authorAdam Nemet <anemet@apple.com>
Fri, 10 Jul 2015 18:55:13 +0000 (18:55 +0000)
committerAdam Nemet <anemet@apple.com>
Fri, 10 Jul 2015 18:55:13 +0000 (18:55 +0000)
commit31a4111f5020d84f4416ba18e770eb398c8998e0
treec70d554ef39b48cb289ddb74a10216ed310d21ca
parent8c3eef8b7c1b1a170ed1707b467b8c7b310c7ee5
[LoopDist/LoopVer] Move LoopVersioning to a new module, NFC

Summary:
The class will obviously need improvement down the road.  For one, there
is no reason that addPHINodes would have to be exposed like that.  I
will make this and other improvements in follow-up patches.

The main goal is to be able to share this functionality.  The
LoopLoadElimination pass I am working on needs it too.  Later we can
move other clients as well (LV and Ashutosh's LICMVer).

Reviewers: hfinkel, ashutosh.nema

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D10577

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241932 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/LoopVersioning.h [new file with mode: 0644]
lib/Transforms/Scalar/LoopDistribute.cpp
lib/Transforms/Utils/CMakeLists.txt
lib/Transforms/Utils/LoopVersioning.cpp [new file with mode: 0644]