llvm-6502/lib/Transforms/InstCombine
Chris Lattner 4ece577019 Enhance the shift propagator to handle the case when you have:
A = shl x, 42
...
B = lshr ..., 38

which can be transformed into:
A = shl x, 4
...

iff we can prove that the would-be-shifted-in bits
are already zero.  This eliminates two shifts in the testcase
and allows eliminate of the whole i128 chain in the real example.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112314 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-27 22:53:44 +00:00
..
CMakeLists.txt
InstCombine.h Reapply r110396, with fixes to appease the Linux buildbot gods. 2010-08-06 18:33:48 +00:00
InstCombineAddSub.cpp Floating-point add, sub, and mul are now spelled fadd, fsub, and fmul, 2010-03-02 01:11:08 +00:00
InstCombineAndOrXor.cpp Re-apply the infamous r108614, with a fix pointed out by Dirk Steinke. 2010-08-02 09:32:13 +00:00
InstCombineCalls.cpp PR7853: fix a silly mistake introduced in r101899, and add a test to make sure 2010-08-09 20:49:43 +00:00
InstCombineCasts.cpp Implement a pretty general logical shift propagation 2010-08-27 22:24:38 +00:00
InstCombineCompares.cpp PR7750: !CExpr->isNullValue() only properly computes whether CExpr is nonnull 2010-07-29 18:03:33 +00:00
InstCombineLoadStoreAlloca.cpp Re-apply r111568 with a fix for the clang self-host. 2010-08-20 18:24:43 +00:00
InstCombineMulDivRem.cpp Floating-point add, sub, and mul are now spelled fadd, fsub, and fmul, 2010-03-02 01:11:08 +00:00
InstCombinePHI.cpp cache result of operator* 2010-07-12 14:15:58 +00:00
InstCombineSelect.cpp Remove the rest of my instcombine changes. Back to the drawing board on this one. 2010-07-16 16:39:00 +00:00
InstCombineShifts.cpp Enhance the shift propagator to handle the case when you have: 2010-08-27 22:53:44 +00:00
InstCombineSimplifyDemanded.cpp use ArgOperand API 2010-06-28 16:45:00 +00:00
InstCombineVectorOps.cpp Temporarily revert r110987 as it's causing some miscompares in 2010-08-17 22:55:27 +00:00
InstCombineWorklist.h I got tired of VISIBILITY_HIDDEN colliding with the gcc enum. Rename it 2010-05-11 20:16:09 +00:00
InstructionCombining.cpp Fix batch of converting RegisterPass<> to INTIALIZE_PASS(). 2010-07-21 22:09:45 +00:00
Makefile