[SimpleLoopUnswitch] Don't non-trivially unswitch loops with catchswitch exits
authorArthur Eubanks <aeubanks@google.com>
Thu, 8 Jul 2021 22:05:50 +0000 (15:05 -0700)
committerArthur Eubanks <aeubanks@google.com>
Wed, 14 Jul 2021 21:07:28 +0000 (14:07 -0700)
commit5366de7375e653998ff80c3c6cbdfa4f9b9046e3
treedf6f53a865060882ce6f69a76e7b947e3cf283ee
parent0e49c54a8cbd3e779e5526a5888c683c01cc3c50
[SimpleLoopUnswitch] Don't non-trivially unswitch loops with catchswitch exits

SplitBlock() can't handle catchswitch.

Fixes PR50973.

Reviewed By: aheejin

Differential Revision: https://reviews.llvm.org/D105672
llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
llvm/test/Transforms/SimpleLoopUnswitch/catchswitch.ll [new file with mode: 0644]