summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2017-06-23 04:03:04 +0000
committerChandler Carruth <chandlerc@gmail.com>2017-06-23 04:03:04 +0000
commit4ab0f4910a2b494b89f3ea11516fb04d3f3a49c8 (patch)
tree4bff10a34cae8fcc7c185809a1cb349a63bba9c6 /clang/lib/Frontend/CompilerInvocation.cpp
parent13811b0605027136925d49a7842f6e291578371b (diff)
downloadbcm5719-llvm-4ab0f4910a2b494b89f3ea11516fb04d3f3a49c8.tar.gz
bcm5719-llvm-4ab0f4910a2b494b89f3ea11516fb04d3f3a49c8.zip
[LoopSimplify] Factor the logic to form dedicated exits into a utility.
I want to use the same logic as LoopSimplify to form dedicated exits in another pass (SimpleLoopUnswitch) so I wanted to factor it out here. I also noticed that there is a pretty significantly more efficient way to implement this than the way the code in LoopSimplify worked. We don't need to actually retain the set of unique exit blocks, we can just rewrite them as we find them and use only a set to deduplicate. This did require changing one part of LoopSimplify to not re-use the unique set of exits, but it only used it to check that there was a single unique exit. That part of the code is about to walk the exiting blocks anyways, so it seemed better to rewrite it to use those exiting blocks to compute this property on-demand. I also had to ditch a statistic, but it doesn't seem terribly valuable. Differential Revision: https://reviews.llvm.org/D34049 llvm-svn: 306081
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud