diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2017-01-17 22:28:52 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2017-01-17 22:28:52 +0000 |
commit | 80de5e6e01e97678e76d11328f1c766adf4330b2 (patch) | |
tree | 33c62c9a18f1afc15ac6c30a03063bb913e50bd3 /llvm/lib/CodeGen/GlobalISel/CallLowering.cpp | |
parent | 6d184d1fb16e33e230d38a8316d43c02e182641e (diff) | |
download | bcm5719-llvm-80de5e6e01e97678e76d11328f1c766adf4330b2.tar.gz bcm5719-llvm-80de5e6e01e97678e76d11328f1c766adf4330b2.zip |
[LoopDeletion] (cleanup, NFC) Use the dedicated helper to get a single
unique exit block if available rather than rolling it ourselves.
This is a little disappointing because that helper doesn't do anything
clever to short-circuit the (surprisingly expensive) computation of all
exit blocks. What's worse is that the way we compute this is hopelessly,
hilariously inefficient. We're literally computing the same information
two different ways and multiple times each way:
- hasDedicatedExits computes the exit block set and then looks at the
predecessors of each
- getExitingBlocks computes the set of loop blocks which have exiting
successors
- getUniqueExitBlock(s) computes the set of non-loop blocks reached from
loop blocks (sound familiar?)
Anyways, at some point we should clean all of this up in the LoopInfo
API, but for now just simplifying the user I'm about to touch.
llvm-svn: 292282
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/CallLowering.cpp')
0 files changed, 0 insertions, 0 deletions