llvm-6502/lib/Transforms
Chris Lattner 3bf6815556 enhance x-(-A) -> x+A to preserve NUW/NSW.
Use the presence of NSW/NUW to fold "icmp (x+cst), x" to a constant in
cases where it would otherwise be undefined behavior.

Surprisingly (to me at least), this triggers hundreds of the times in
a few benchmarks: lencode, ldecode, and 466.h264ref seem to *really*
like this.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91812 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-21 04:04:05 +00:00
..
Hello Fix a bunch of little errors that Clang complains about when its being pedantic 2009-12-19 07:05:23 +00:00
Instrumentation Cheap, mostly strict, stable sorting. 2009-12-02 15:57:15 +00:00
IPO Teach GlobalOpt to delete aliases with internal linkage (after 2009-12-08 10:10:20 +00:00
Scalar enhance x-(-A) -> x+A to preserve NUW/NSW. 2009-12-21 04:04:05 +00:00
Utils Add Loop contains utility methods for testing whether a loop 2009-12-18 01:24:09 +00:00
Makefile The attached patches attempt to fix cross builds. For example, if you 2009-08-18 00:40:33 +00:00