[InstCombine] sink min/max intrinsics with common op after select
authorSanjay Patel <spatel@rotateright.com>
Sun, 28 Mar 2021 16:23:57 +0000 (12:23 -0400)
committerSanjay Patel <spatel@rotateright.com>
Sun, 28 Mar 2021 17:13:04 +0000 (13:13 -0400)
commit01ae6e5ead64c033134a1ee68fb0bf6ec93b4c40
treead3d57b6ade002e114498386c3f22a57dc20e4ef
parent4f349739ef696fd6b633550ea94adffcbcf7994f
[InstCombine] sink min/max intrinsics with common op after select

This is another step towards parity with cmp+select min/max idioms.

See D98152.
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
llvm/test/Transforms/InstCombine/select-min-max.ll