diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2015-01-18 01:25:51 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2015-01-18 01:25:51 +0000 |
commit | 691addc25f9ad25da4c679e447b325efce613308 (patch) | |
tree | dd011e7b32ab3805d53bb58c7f986d947bc71106 /llvm/lib/Transforms/Utils/LoopSimplify.cpp | |
parent | 1c39bbb7410db91829f74f8c06e93a1d288541bb (diff) | |
download | llvm-691addc25f9ad25da4c679e447b325efce613308.zip llvm-691addc25f9ad25da4c679e447b325efce613308.tar.gz llvm-691addc25f9ad25da4c679e447b325efce613308.tar.bz2 |
[PM] Now that LoopInfo isn't in the Pass type hierarchy, it is much
cleaner to derive from the generic base.
Thise removes a ton of boiler plate code and somewhat strange and
pointless indirections. It also remove a bunch of the previously needed
friend declarations. To fully remove these, I also lifted the verify
logic into the generic LoopInfoBase, which seems good anyways -- it is
generic and useful logic even for the machine side.
llvm-svn: 226385
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopSimplify.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopSimplify.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopSimplify.cpp b/llvm/lib/Transforms/Utils/LoopSimplify.cpp index cb79686..4c7b5c6 100644 --- a/llvm/lib/Transforms/Utils/LoopSimplify.cpp +++ b/llvm/lib/Transforms/Utils/LoopSimplify.cpp @@ -460,7 +460,7 @@ static BasicBlock *insertUniqueBackedgeBlock(Loop *L, BasicBlock *Preheader, // Update Loop Information - we know that this block is now in the current // loop and all parent loops. - L->addBasicBlockToLoop(BEBlock, LI->getBase()); + L->addBasicBlockToLoop(BEBlock, *LI); // Update dominator information DT->splitBlock(BEBlock); |