llvm-6502/lib/Transforms/Scalar
Chris Lattner 6fb5a4a5f8 Add two optimizations. The first folds (X+Y)-X -> Y
The second folds operations into selects, e.g. (select C, (X+Y), (Y+Z))
-> (Y+(select C, X, Z)

This occurs a few times across spec, e.g.

         select    add/sub
mesa:    83        0
povray:  5         2
gcc      4         2
parser   0         22
perlbmk  13        30
twolf    0         3


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19706 91177308-0d34-0410-b5e6-96231b3b80d8
2005-01-19 21:50:18 +00:00
..
ADCE.cpp Change indentation of a whole bunch of code, no real changes here. 2004-12-12 23:49:37 +00:00
BasicBlockPlacement.cpp Add more missing createXxxPass functions. 2005-01-08 17:21:40 +00:00
ConstantProp.cpp
CorrelatedExprs.cpp
DCE.cpp
DeadStoreElimination.cpp Fix uint64_t -> unsigned VS warnings. 2005-01-08 19:42:22 +00:00
GCSE.cpp Simplify code and do not invalidate iterators. 2004-12-12 18:23:20 +00:00
IndVarSimplify.cpp Convert 'struct' to 'class' in various places to adhere to the coding standards 2004-10-27 16:14:51 +00:00
InstructionCombining.cpp Add two optimizations. The first folds (X+Y)-X -> Y 2005-01-19 21:50:18 +00:00
LICM.cpp Adjust to new interfaces 2004-12-15 07:22:25 +00:00
LoopStrengthReduce.cpp Initial implementation of the strength reduction for GEP instructions in 2004-10-18 21:08:22 +00:00
LoopUnroll.cpp Silence VS warnings. 2005-01-08 19:37:20 +00:00
LoopUnswitch.cpp Put createLoopUnswitchPass() into proper namespace 2005-01-06 05:47:18 +00:00
LowerConstantExprs.cpp
LowerGC.cpp Initialize with the correct constant type 2004-10-27 03:55:24 +00:00
LowerPacked.cpp Fix the exposed prototype for the lower packed pass, thanks to 2004-11-19 16:49:34 +00:00
Makefile Change Library Names Not To Conflict With Others When Installed 2004-10-27 23:18:45 +00:00
PRE.cpp Add more missing createXxxPass functions. 2005-01-08 17:21:40 +00:00
Reassociate.cpp
ScalarReplAggregates.cpp Silence warnings 2005-01-08 19:34:41 +00:00
SCCP.cpp Silence warnings 2005-01-08 19:34:41 +00:00
SimplifyCFG.cpp Hrm, some people complain when the compiler cheerfully tells them what it's 2004-10-19 06:33:16 +00:00
TailDuplication.cpp Do not count debugger intrinsics in size estimation. 2004-11-22 17:23:57 +00:00
TailRecursionElimination.cpp