diff options
author | Nikita Popov <npopov@redhat.com> | 2022-07-01 16:11:39 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-07-01 16:13:35 +0200 |
commit | 65d59b42658fdea49898c125f48f20a93de9d156 (patch) | |
tree | da6c24d6dce0f754b481bbe9cb334f3c1e37a50f /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | dc6c1f181b8a95b959f590423ce007b819532290 (diff) | |
download | llvm-65d59b42658fdea49898c125f48f20a93de9d156.zip llvm-65d59b42658fdea49898c125f48f20a93de9d156.tar.gz llvm-65d59b42658fdea49898c125f48f20a93de9d156.tar.bz2 |
[LoopDeletion] Fix deletion with unusual predecessor terminator (PR56266)
LoopSimplify only requires that the loop predecessor has a single
successor and is safe to hoist into -- it doesn't necessarily have
to be an unconditional BranchInst.
Adjust LoopDeletion to assert conditions closer to what it actually
needs for correctness, namely a single successor and a
side-effect-free terminator (as the terminator is getting dropped).
Fixes https://github.com/llvm/llvm-project/issues/56266.
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions