diff options
author | Max Kazantsev <mkazantsev@azul.com> | 2021-07-09 17:40:42 +0700 |
---|---|---|
committer | Max Kazantsev <mkazantsev@azul.com> | 2021-07-09 18:03:34 +0700 |
commit | 9c5e65691e129a816ea4bba10be103ca67172ca5 (patch) | |
tree | 2e53c773773a550c3139a9c899af3768f4fc6748 /llvm/lib/Transforms/Utils/Local.cpp | |
parent | 38c9a4068df5c44433da3fc15789cef8ce71367d (diff) | |
download | llvm-9c5e65691e129a816ea4bba10be103ca67172ca5.zip llvm-9c5e65691e129a816ea4bba10be103ca67172ca5.tar.gz llvm-9c5e65691e129a816ea4bba10be103ca67172ca5.tar.bz2 |
[LoopDeletion] Handle switch in proving that loop exits on first iteration
Added check for switch-terminated blocks in loops.
Now if a block is terminated with a switch, we try to find out which of the
cases is taken on 1st iteration and mark corresponding edge from the block
to the case successor as live.
Patch by Dmitry Makogon!
Differential Revision: https://reviews.llvm.org/D105688
Reviewed By: nikic, mkazantsev
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions