diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2017-09-19 23:19:00 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2017-09-19 23:19:00 +0000 |
commit | 76ab23234c5211b71962a1e4d0c4f3bf61f19b19 (patch) | |
tree | 5d8c195865be1f9a9011143a5680443cc5481845 /llvm/lib/Transforms/IPO/LoopExtractor.cpp | |
parent | fbfaec7089b8bfc1e3ef91dfbc50b4b7cf7a79e7 (diff) | |
download | bcm5719-llvm-76ab23234c5211b71962a1e4d0c4f3bf61f19b19.tar.gz bcm5719-llvm-76ab23234c5211b71962a1e4d0c4f3bf61f19b19.zip |
[LoopInfo] Make LoopBase and Loop destructors non-public
Summary:
See comment for why I think this is a good idea.
This change also:
- Removes an SCEV test case. The SCEV test was not testing anything useful (most of it was `#if 0` ed out) and it would need to be updated to deal with a private ~Loop::Loop.
- Updates the loop pass manager test case to deal with a private ~Loop::Loop.
- Renames markAsRemoved to markAsErased to contrast with removeLoop, via the usual remove vs. erase idiom we already have for instructions and basic blocks.
Reviewers: chandlerc
Subscribers: mehdi_amini, mcrosier, llvm-commits
Differential Revision: https://reviews.llvm.org/D37996
llvm-svn: 313695
Diffstat (limited to 'llvm/lib/Transforms/IPO/LoopExtractor.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/LoopExtractor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/LoopExtractor.cpp b/llvm/lib/Transforms/IPO/LoopExtractor.cpp index c74b0a35e29..c1d46f1ba4c 100644 --- a/llvm/lib/Transforms/IPO/LoopExtractor.cpp +++ b/llvm/lib/Transforms/IPO/LoopExtractor.cpp @@ -143,7 +143,7 @@ bool LoopExtractor::runOnLoop(Loop *L, LPPassManager &) { Changed = true; // After extraction, the loop is replaced by a function call, so // we shouldn't try to run any more loop passes on it. - LI.markAsRemoved(L); + LI.markAsErased(L); } ++NumExtracted; } |