summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-12-09 22:06:23 +0000
committerChris Lattner <sabre@nondot.org>2008-12-09 22:06:23 +0000
commitfa9f99aa128266f9b742648884a3be5549fd8e8b (patch)
tree2409bfb30891947fde7c365be76619b2d6d9792e /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent445071c44f1e463c372ea35fc08b7df6321fca76 (diff)
downloadbcm5719-llvm-fa9f99aa128266f9b742648884a3be5549fd8e8b.tar.gz
bcm5719-llvm-fa9f99aa128266f9b742648884a3be5549fd8e8b.zip
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. llvm-svn: 60799
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud