Dan Gohman 81b28ceab6 Improve instcombine's handling of integer min and max in two ways:
- Recognize expressions like "x > -1 ? x : 0" as min/max and turn them
   into expressions like "x < 0 ? 0 : x", which is easily recognizable
   as a min/max operation.
 - Refrain from folding expression like "y/2 < 1" to "y < 2" when the
   comparison is being used as part of a min or max idiom, like
   "y/2 < 1 ? 1 : y/2". In that case, the division has another use, so
   folding doesn't eliminate it, and obfuscates the min/max, making it
   harder to recognize as a min/max operation.

These benefit ScalarEvolution, CodeGen, and anything else that wants to
recognize integer min and max.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56246 91177308-0d34-0410-b5e6-96231b3b80d8
2008-09-16 18:46:06 +00:00
..
2008-03-06 06:50:03 +00:00
2008-05-18 04:11:26 +00:00
2008-05-31 17:10:28 +00:00
2008-07-12 05:04:38 +00:00
2008-07-17 06:07:20 +00:00
2008-05-20 05:46:13 +00:00
2008-03-09 08:16:40 +00:00
2008-03-09 08:16:40 +00:00
2008-03-25 04:26:08 +00:00
2008-05-16 02:59:42 +00:00
2008-03-25 04:26:08 +00:00
2008-03-25 04:26:08 +00:00
2008-05-09 05:19:28 +00:00
2008-03-09 08:16:40 +00:00
2008-03-09 08:16:40 +00:00
2008-05-09 05:19:28 +00:00
2008-03-09 08:16:40 +00: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.