[InstCombine] factorize min/max intrinsic ops with common operand
authorSanjay Patel <spatel@rotateright.com>
Thu, 12 Aug 2021 12:34:30 +0000 (08:34 -0400)
committerSanjay Patel <spatel@rotateright.com>
Thu, 12 Aug 2021 15:19:09 +0000 (11:19 -0400)
commit6de1dbbd09c12abbec7eb187ffa1afbd47302dfa
treebb899f6f6fe5459f5ce755bea1eb012072ef7c80
parent1b5a195845e1612ca0f76ee1b03f7e008e4912b8
[InstCombine] factorize min/max intrinsic ops with common operand

This is an adaptation of D41603 and another step on the way
to canonicalizing to the intrinsic forms of min/max.

See D98152 for status.
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/test/Transforms/InstCombine/minmax-intrinsics.ll