llvm-6502/lib
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
..
Analysis Improve instcombine's handling of integer min and max in two ways: 2008-09-16 18:46:06 +00:00
Archive Fold the useful features of alist and alist_node into ilist, and 2008-07-28 21:51:04 +00:00
AsmParser Update generated files. 2008-09-09 01:13:24 +00:00
Bitcode Re-enables the new vector select in the bitcode reader, by modifying the 2008-09-16 01:01:33 +00:00
CodeGen Don't take the time to CheckDAGForTailCallsAndFixThem when tail calls 2008-09-16 01:42:28 +00:00
Debugger Add #include 2008-08-23 21:34:34 +00:00
ExecutionEngine Make safer variant of alias resolution routine to be default 2008-09-09 20:05:04 +00:00
Linker Make safer variant of alias resolution routine to be default 2008-09-09 20:05:04 +00:00
Support Updating VC++ project. 2008-08-24 11:56:40 +00:00
System AllocateRWXMemory -> AllocateRWX. 2008-09-16 17:28:18 +00:00
Target Fixed Bug 2751 2008-09-15 21:06:55 +00:00
Transforms Improve instcombine's handling of integer min and max in two ways: 2008-09-16 18:46:06 +00:00
VMCore Fix WriteAsOperand to not emit a leading space character. Adjust 2008-09-14 17:21:12 +00:00
Makefile remove attribution from lib Makefiles. 2007-12-29 20:09:26 +00:00