[PATCH] D19338: New code hoisting pass based on GVN (optimistic approach)
Sebastian Pop via llvm-commits
llvm-commits at lists.llvm.org
Tue May 3 10:08:32 PDT 2016
sebpop updated this revision to Diff 56018.
sebpop added a comment.
Some cleanups and also added a cost function to not hoist expressions too far from their original location.
By default we bound the hoisting to 4 levels and a maximum of 4 basic blocks on the paths to the hoisting point.
On the test-suite we now have the following stats:
gvn-hoist.*Number of instructions hoisted: 25324
gvn-hoist.*Number of instructions removed: 30393
gvn-hoist.*Number of loads hoisted: 11421
gvn-hoist.*Number of loads removed: 14687
gvn-hoist.*Number of stores hoisted: 25
gvn-hoist.*Number of stores removed: 25
gvn-hoist.*Number of calls hoisted: 10
gvn-hoist.*Number of calls removed: 10
We will post SPEC score improvements and test-suite compile time and execution time numbers for this revision of the patch.
http://reviews.llvm.org/D19338
Files:
llvm/include/llvm/InitializePasses.h
llvm/include/llvm/LinkAllPasses.h
llvm/include/llvm/Transforms/Scalar.h
llvm/include/llvm/Transforms/Scalar/GVN.h
llvm/lib/Passes/PassRegistry.def
llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
llvm/lib/Transforms/Scalar/CMakeLists.txt
llvm/lib/Transforms/Scalar/GVNHoist.cpp
llvm/lib/Transforms/Scalar/Scalar.cpp
llvm/lib/Transforms/Utils/MemorySSA.cpp
llvm/test/Transforms/GVN/hoist.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19338.56018.patch
Type: text/x-patch
Size: 49951 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160503/f96cd0cb/attachment-0001.bin>
More information about the llvm-commits
mailing list