llvm-6502/lib/Transforms/Scalar
Chris Lattner bc99be10b8 Teach GVN to invalidate some memdep information when it does an RAUW
of a pointer.  This allows is to catch more equivalencies.  For example,
the type_lists_compatible_p function used to require two iterations of
the gvn pass (!) to delete its 18 redundant loads because the first pass
would CSE all the addressing computation cruft, which would unblock the
second memdep/gvn passes from recognizing them.  This change allows
memdep/gvn to catch all 18 when run just once on the function (as is 
typical :) instead of just 3.

On all of 403.gcc, this bumps up the # reundandancies found from:

     63 gvn    - Number of instructions PRE'd
 153991 gvn    - Number of instructions deleted
  50069 gvn    - Number of loads deleted
to:
     63 gvn    - Number of instructions PRE'd
 154137 gvn    - Number of instructions deleted
  50185 gvn    - Number of loads deleted

+120 loads deleted isn't bad.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60799 91177308-0d34-0410-b5e6-96231b3b80d8
2008-12-09 22:06:23 +00:00
..
ADCE.cpp
BasicBlockPlacement.cpp
CMakeLists.txt
CodeGenPrepare.cpp
CondPropagate.cpp Factor some code into a new FoldSingleEntryPHINodes method. 2008-12-03 19:44:02 +00:00
ConstantProp.cpp
DCE.cpp
DeadStoreElimination.cpp don't bother touching volatile stores, they will just return clobber on 2008-12-07 00:25:15 +00:00
GVN.cpp Teach GVN to invalidate some memdep information when it does an RAUW 2008-12-09 22:06:23 +00:00
GVNPRE.cpp
IndVarSimplify.cpp
InstructionCombining.cpp Remove some errors that crept in. No functionality change. 2008-12-02 06:24:20 +00:00
JumpThreading.cpp remove DebugIterations option. Despite the accusations, 2008-12-08 22:44:07 +00:00
LICM.cpp
LoopDeletion.cpp
LoopIndexSplit.cpp Fix spelling. 2008-12-08 17:07:24 +00:00
LoopRotation.cpp
LoopStrengthReduce.cpp Fix a really subtle off-by-one bug that Duncan noticed with valgrind 2008-12-09 04:47:21 +00:00
LoopUnroll.cpp
LoopUnswitch.cpp Undo previous patch. 2008-12-08 17:02:37 +00:00
Makefile
MemCpyOptimizer.cpp Make a few major changes to memdep and its clients: 2008-12-05 21:04:20 +00:00
PredicateSimplifier.cpp
Reassociate.cpp
Reg2Mem.cpp
Scalar.cpp
ScalarReplAggregates.cpp
SCCP.cpp
SimplifyCFGPass.cpp
SimplifyHalfPowrLibCalls.cpp
SimplifyLibCalls.cpp
TailDuplication.cpp
TailRecursionElimination.cpp