[GVNHoist] don't hoist callbr users into the callbr's block
authorNick Desaulniers <ndesaulniers@google.com>
Mon, 13 Mar 2023 17:14:02 +0000 (10:14 -0700)
committerNick Desaulniers <ndesaulniers@google.com>
Mon, 13 Mar 2023 17:20:57 +0000 (10:20 -0700)
commit831e99fee90e9406c7260ca66d688ec353110183
treea4ea66cd3c0e3e765a0ce4632badce5d397f9c84
parentc5363678932a8187b06f931ea30c5d06017b1bb5
[GVNHoist] don't hoist callbr users into the callbr's block

This isn't safe to do.

Link: https://github.com/llvm/llvm-project/issues/53562
Fixes: https://github.com/llvm/llvm-project/issues/61023

Reviewed By: efriedma, nikic

Differential Revision: https://reviews.llvm.org/D144927
llvm/lib/Transforms/Scalar/GVNHoist.cpp
llvm/test/Transforms/GVNHoist/hoist-call.ll