[InstCombine] Remove min/max special case when folding into select
authorNikita Popov <npopov@redhat.com>
Fri, 31 Mar 2023 11:46:16 +0000 (13:46 +0200)
committerNikita Popov <npopov@redhat.com>
Fri, 31 Mar 2023 11:48:21 +0000 (13:48 +0200)
commitcbca9ce91c6440f8815742b8a73a27aa81e806e6
treeb3c8482d83fd37b23660684852270d6bae98f981
parente7281c6f614230860cd18a9d1f24612c5c38e9ca
[InstCombine] Remove min/max special case when folding into select

Now that we canonicalize to min/max intrinsics, we no longer need
to guard against this here.

In fact, it seems like the issue from PR46271 was the final push
for introducing the intrinsics in the first place...
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
llvm/test/Transforms/InstCombine/minmax-fold.ll