llvm-6502/test/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
..
ABCD
ADCE
ArgumentPromotion
BlockPlacement
BranchFolding
CodeExtractor
CodeGenPrepare
ConstantMerge
ConstProp Fix PR5551 by not ignoring the top level constantexpr when 2009-12-04 06:29:29 +00:00
DeadArgElim
DeadStoreElimination Fix some CHECK lines which were ignored by accident. 2009-12-12 09:25:50 +00:00
FunctionAttrs
GlobalDCE
GlobalOpt Teach GlobalOpt to delete aliases with internal linkage (after 2009-12-08 10:10:20 +00:00
GVN fix an overly conservative caching issue that caused memdep to 2009-12-19 21:29:22 +00:00
IndVarSimplify Make getUniqueExitBlocks's precondition assert more precise, to 2009-12-11 20:05:23 +00:00
Inline
InstCombine enhance x-(-A) -> x+A to preserve NUW/NSW. 2009-12-21 04:04:05 +00:00
Internalize
IPConstantProp Fix a use of an invalidated iterator in the case where there are multiple 2009-11-23 16:13:39 +00:00
JumpThreading fix PR5698 2009-12-06 17:17:23 +00:00
LCSSA
LICM Add radar fixed in comment. 2009-12-14 19:07:25 +00:00
LoopDeletion
LoopIndexSplit
LoopRotate Make Loop::getLoopLatch() work on loops which don't have preheaders, as 2009-11-20 20:51:18 +00:00
LoopSimplify Make Loop::getLoopLatch() work on loops which don't have preheaders, as 2009-11-20 20:51:18 +00:00
LoopStrengthReduce
LoopUnroll Teach getSmallConstantTripMultiple about Shl operators. 2009-11-20 01:09:34 +00:00
LoopUnswitch Reverting patch in revision 89758, initial attempt at fixing PR5373 has proven to be bogus. 2009-11-25 05:38:41 +00:00
LowerInvoke
LowerSetJmp
LowerSwitch
Mem2Reg
MemCpyOpt
MergeFunc
PruneEH
Reassociate
ScalarRepl Reapply 91459 with a simple fix for the problem that broke the x86_64-darwin 2009-12-18 20:14:40 +00:00
SCCP
SimplifyCFG
SimplifyLibCalls reapply my strstr optimization. I have reproduced the x86-64 bootstrap 2009-12-16 09:32:05 +00:00
SRETPromotion
SSI
StripSymbols
TailCallElim
TailDup