diff options
author | Chris Lattner <sabre@nondot.org> | 2008-12-02 08:16:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-12-02 08:16:11 +0000 |
commit | 1db9bbe802bc50484129213ca74437b38c556fc2 (patch) | |
tree | 3197e01832800f91997e34ffdf05474edec6bd8f /llvm/lib/CodeGen | |
parent | 4d9966dd2dd353ac8ee005dc223185dcee7c2dae (diff) | |
download | bcm5719-llvm-1db9bbe802bc50484129213ca74437b38c556fc2.tar.gz bcm5719-llvm-1db9bbe802bc50484129213ca74437b38c556fc2.zip |
Implement PRE of loads in the GVN pass with a pretty cheap and
straight-forward implementation. This does not require any extra
alias analysis queries beyond what we already do for non-local loads.
Some programs really really like load PRE. For example, SPASS triggers
this ~1000 times, ~300 times in 255.vortex, and ~1500 times on 403.gcc.
The biggest limitation to the implementation is that it does not split
critical edges. This is a huge killer on many programs and should be
addressed after the initial patch is enabled by default.
The implementation of this should incidentally speed up rejection of
non-local loads because it avoids creating the repl densemap in cases
when it won't be used for fully redundant loads.
This is currently disabled by default.
Before I turn this on, I need to fix a couple of miscompilations in
the testsuite, look at compile time performance numbers, and look at
perf impact. This is pretty close to ready though.
llvm-svn: 60408
Diffstat (limited to 'llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions