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/Scalar/InductiveRangeCheckElimination.cpp | |
parent | 1c39bbb7410db91829f74f8c06e93a1d288541bb (diff) | |
download | bcm5719-llvm-691addc25f9ad25da4c679e447b325efce613308.tar.gz bcm5719-llvm-691addc25f9ad25da4c679e447b325efce613308.zip |
[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/Scalar/InductiveRangeCheckElimination.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp b/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp index 2918881b3e5..53115a9a12e 100644 --- a/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp +++ b/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp @@ -982,9 +982,8 @@ void LoopConstrainer::addToParentLoopIfNeeded(IteratorTy Begin, if (!ParentLoop) return; - auto &LoopInfoBase = OriginalLoopInfo.getBase(); for (; Begin != End; Begin++) - ParentLoop->addBasicBlockToLoop(*Begin, LoopInfoBase); + ParentLoop->addBasicBlockToLoop(*Begin, OriginalLoopInfo); } bool LoopConstrainer::run() { |