[InstCombine] Clarify invoke/callbr handling in constexpr call fold (NFCI)
authorNikita Popov <npopov@redhat.com>
Mon, 18 Jul 2022 10:01:12 +0000 (12:01 +0200)
committerNikita Popov <npopov@redhat.com>
Mon, 18 Jul 2022 10:02:46 +0000 (12:02 +0200)
commit4fba35f973d2305b19965fd8ebe47bf742a01b8e
tree6f6e9e5b1dd8339a0a403e5f80e3813c5a5f7c22
parent46d5615742eed35efa19f55c84b43afd4575d522
[InstCombine] Clarify invoke/callbr handling in constexpr call fold (NFCI)

We only need to check the block for the normal/default destination,
not for other destinations. Using the value in those would be
illegal anyway.

The callbr case cannot actually happen here, because callbr is
currently limited to inline asm. Retaining it to match the spirit
of the original code.
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp