Filter callbr insts from critical edge splitting
authorBill Wendling <isanbard@gmail.com>
Fri, 21 Feb 2020 00:22:35 +0000 (16:22 -0800)
committerBill Wendling <isanbard@gmail.com>
Fri, 21 Feb 2020 00:24:42 +0000 (16:24 -0800)
commit2fe457690da0fc38bc7f9f1d0aee2ba6a6a16ada
tree93dc0634556d26cdcfbb26db6e07211bcf335c9a
parentd4ded05ba851304b26a437896bc3962ef56f62cb
Filter callbr insts from critical edge splitting

Similarly to how splitting predecessors with an indirectbr isn't handled
in the generic way, we also shouldn't split callbrs, for similar
reasons.
llvm/lib/Transforms/Scalar/LICM.cpp
llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
llvm/test/Transforms/LICM/callbr-crash.ll [new file with mode: 0644]