diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2015-01-19 03:03:39 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2015-01-19 03:03:39 +0000 |
commit | 0eae112009967cfb4ffa441e62c89fb8c38331bd (patch) | |
tree | 85349f24ad71be8c498fc8f683d17f7fdfdcd31d /llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp | |
parent | 26500a56f5a01124dca93218c7f4ca957afa3e12 (diff) | |
download | llvm-0eae112009967cfb4ffa441e62c89fb8c38331bd.zip llvm-0eae112009967cfb4ffa441e62c89fb8c38331bd.tar.gz llvm-0eae112009967cfb4ffa441e62c89fb8c38331bd.tar.bz2 |
[PM] Lift the analyses into the interface for
SplitLandingPadPredecessors and remove the Pass argument from its
interface.
Another step to the utilities being usable with both old and new pass
managers.
llvm-svn: 226426
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp b/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp index 82b4f09..2a8c20d 100644 --- a/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp +++ b/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp @@ -125,7 +125,8 @@ static void ConnectProlog(Loop *L, Value *TripCount, unsigned Count, } else { SmallVector<BasicBlock*, 2> NewBBs; SplitLandingPadPredecessors(Exit, Preds, ".unr1-lcssa", ".unr2-lcssa", - P, NewBBs); + NewBBs, AA, DT, LI, + P->mustPreserveAnalysisID(LCSSAID)); } // Add the branch to the exit block (around the unrolled loop) BranchInst::Create(Exit, NewPH, BrLoopExit, InsertPt); |