llvm-6502/lib/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
..
Hello
InstCombine Instcombine was transforming: 2012-07-12 01:45:35 +00:00
Instrumentation [tsan] fix compile-time falilure found while building Chromium with tsan (tsan issue #3). A unit test will follow separately. 2012-07-05 09:07:31 +00:00
IPO GlobalOpt forgot to handle bitcast when analyzing globals. Found by inspection. 2012-07-02 18:55:39 +00:00
Scalar BoundsChecking: optimize out the check for offset < 0 if size is known to be >= 0 (signed). 2012-07-03 17:30:18 +00:00
Utils Reverted r156659, due to probable performance regressions, DenseMap should be used here: 2012-07-04 05:53:05 +00:00
Vectorize Precompute SCEV pointer analysis prior to instruction fusion in BBVectorize. 2012-06-28 05:42:45 +00:00
CMakeLists.txt Add a basic-block autovectorization pass. 2012-02-01 03:51:43 +00:00
LLVMBuild.txt Add a basic-block autovectorization pass. 2012-02-01 03:51:43 +00:00
Makefile Add a basic-block autovectorization pass. 2012-02-01 03:51:43 +00:00