Sanjay Patel 0ce2920f17 [InstCombine] try to narrow min/max intrinsics with constant operand
The constant trunc/ext may not be the optimal pre-condition,
but I think that handles the common cases.

Example of Alive2 proof:
https://alive2.llvm.org/ce/z/sREeLC

This is another step towards canonicalizing to the intrinsics.
Narrowing was identified as source of potential regression for
abs(), so we need to handle this for min/max - see:
https://llvm.org/PR48816

If this is not enough, we could process intrinsics in
the trunc-driven matching in canEvaluateTruncated().
2021-02-01 13:44:13 -05:00
..
2020-06-30 19:56:37 +01:00
2020-02-27 09:06:03 -08:00
2019-08-14 16:50:06 +00:00
2020-09-05 12:37:45 +02:00
2020-08-11 11:05:42 +02:00
2019-09-11 10:51:26 +00:00
2020-10-12 17:55:00 +02:00
2019-09-06 16:26:59 +00:00
2020-10-17 12:20:18 -04:00

This directory contains test cases for the instcombine transformation.  The
dated tests are actual bug tests, whereas the named tests are used to test
for features that the this pass should be capable of performing.