llvm-6502/test/Transforms
Evan Cheng 79590b8edf Instcombine was transforming:
%shr = lshr i64 %key, 3
  %0 = load i64* %val, align 8
  %sub = add i64 %0, -1
  %and = and i64 %sub, %shr
  ret i64 %and

to:
  %shr = lshr i64 %key, 3
  %0 = load i64* %val, align 8
  %sub = add i64 %0, 2305843009213693951
  %and = and i64 %sub, %shr
  ret i64 %and

The demanded bit optimization is actually a pessimization because add -1 would
be codegen'ed as a sub 1. Teach the demanded constant shrinking optimization
to check for negated constant to make sure it is actually reducing the width
of the constant.

rdar://11793464


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160101 91177308-0d34-0410-b5e6-96231b3b80d8
2012-07-12 01:45:35 +00:00
..
ADCE
ArgumentPromotion Fix the remaining TCL-style quotes found in the testsuite. This is 2012-07-02 19:09:46 +00:00
BBVectorize
BlockPlacement
BoundsChecking BoundsChecking: optimize out the check for offset < 0 if size is known to be >= 0 (signed). 2012-07-03 17:30:18 +00:00
BranchFolding
CodeExtractor
CodeGenPrepare
ConstantMerge
ConstProp Fix the remaining TCL-style quotes found in the testsuite. This is 2012-07-02 19:09:46 +00:00
CorrelatedValuePropagation
DeadArgElim Fix the remaining TCL-style quotes found in the testsuite. This is 2012-07-02 19:09:46 +00:00
DeadStoreElimination
EarlyCSE
FunctionAttrs
GlobalDCE
GlobalOpt
GVN Fix the remaining TCL-style quotes found in the testsuite. This is 2012-07-02 19:09:46 +00:00
IndVarSimplify Fix the remaining TCL-style quotes found in the testsuite. This is 2012-07-02 19:09:46 +00:00
Inline Fix the remaining TCL-style quotes found in the testsuite. This is 2012-07-02 19:09:46 +00:00
InstCombine Instcombine was transforming: 2012-07-12 01:45:35 +00:00
InstSimplify
Internalize
IPConstantProp
JumpThreading Fix the remaining TCL-style quotes found in the testsuite. This is 2012-07-02 19:09:46 +00:00
LCSSA
LICM Fix the remaining TCL-style quotes found in the testsuite. This is 2012-07-02 19:09:46 +00:00
LoopDeletion
LoopIdiom
LoopRotate Fix the remaining TCL-style quotes found in the testsuite. This is 2012-07-02 19:09:46 +00:00
LoopSimplify
LoopStrengthReduce Fix the remaining TCL-style quotes found in the testsuite. This is 2012-07-02 19:09:46 +00:00
LoopUnroll
LoopUnswitch
LowerAtomic
LowerExpectIntrinsic
LowerInvoke
LowerSwitch
Mem2Reg
MemCpyOpt Fix the remaining TCL-style quotes found in the testsuite. This is 2012-07-02 19:09:46 +00:00
MergeFunc Fix the remaining TCL-style quotes found in the testsuite. This is 2012-07-02 19:09:46 +00:00
ObjCARC
PhaseOrdering
PruneEH Fix the remaining TCL-style quotes found in the testsuite. This is 2012-07-02 19:09:46 +00:00
Reassociate
ScalarRepl Fix the remaining TCL-style quotes found in the testsuite. This is 2012-07-02 19:09:46 +00:00
SCCP Fix the remaining TCL-style quotes found in the testsuite. This is 2012-07-02 19:09:46 +00:00
SimplifyCFG Revert "IntRange:" as it appears to be breaking self hosting. 2012-07-02 23:22:21 +00:00
SimplifyLibCalls Fix the remaining TCL-style quotes found in the testsuite. This is 2012-07-02 19:09:46 +00:00
Sink
StripSymbols
TailCallElim
TailDup