After this change MatchSelectPattern recognizes the following form
of SMIN:
Y >s C ? ~Y : ~C == ~Y <s ~C ? ~Y : ~C = SMIN(~Y, ~C)
Differential D9352
[InstCombine] Add a new formula for SMIN. sanjoy on Apr 29 2015, 3:12 PM. Authored by
Details After this change MatchSelectPattern recognizes the following form Y >s C ? ~Y : ~C == ~Y <s ~C ? ~Y : ~C = SMIN(~Y, ~C)
Diff Detail Event TimelineComment Actions Totally righteous, LGTM.
|
Please brace this because it dominates a braced control-flow statement. Also, we can just use const auto *C2 here, the type is pretty clear.