diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-29 06:11:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-29 06:11:16 +0000 |
commit | e233b8c64bf0d5afeff2041b844689a3994a2848 (patch) | |
tree | af499eeebe950b77f114de62a8549e4789e54e38 /lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | |
parent | 2652da6af93360e5e5598bc3ca105439a7a8e1a9 (diff) |
Eliminate generality that is not buying us anything. In particular, this
will cause us to miss cases where the input pointer to a load could be value
numbered to another load. Something like this:
%X = load int* %P1
%Y = load int* %P2
Those are obviously the same if P1/P2 are the same. The code this patch
removes attempts to handle that. However, since GCSE iterates, this doesn't
actually buy us anything: GCSE will first replace P1 or P2 with the other
one, then the load can be value numbered as equal.
Removing this code speeds up gcse a lot. On 176.gcc in debug mode, this
speeds up gcse from 29.08s -> 25.73s, a 13% savings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19906 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp')
0 files changed, 0 insertions, 0 deletions