aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGen.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-11-02 07:17:12 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-11-02 07:17:12 +0000
commitae4e800c5bbcdeb221304b2d2e99f239393beaa0 (patch)
tree028982ff2cdafbb36f3d0d2abfd2c94f08b1e04f /llvm/lib/CodeGen/CodeGen.cpp
parenta47b05c7f3b708e2f29ed9f850fc1f6495cdde67 (diff)
downloadllvm-ae4e800c5bbcdeb221304b2d2e99f239393beaa0.zip
llvm-ae4e800c5bbcdeb221304b2d2e99f239393beaa0.tar.gz
llvm-ae4e800c5bbcdeb221304b2d2e99f239393beaa0.tar.bz2
Begin collecting some of the statistics for block placement discussed on
the mailing list. Suggestions for other statistics to collect would be awesome. =] Currently these are implemented as a separate pass guarded by a separate flag. I'm not thrilled by that, but I wanted to be able to collect the statistics for the old code placement as well as the new in order to have a point of comparison. I'm planning on folding them into the single pass if / when there is only one pass of interest. llvm-svn: 143537
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
-rw-r--r--llvm/lib/CodeGen/CodeGen.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/CodeGen.cpp b/llvm/lib/CodeGen/CodeGen.cpp
index a911534..899baad 100644
--- a/llvm/lib/CodeGen/CodeGen.cpp
+++ b/llvm/lib/CodeGen/CodeGen.cpp
@@ -29,6 +29,7 @@ void llvm::initializeCodeGen(PassRegistry &Registry) {
initializeLiveVariablesPass(Registry);
initializeMachineBlockFrequencyInfoPass(Registry);
initializeMachineBlockPlacementPass(Registry);
+ initializeMachineBlockPlacementStatsPass(Registry);
initializeMachineCSEPass(Registry);
initializeMachineDominatorTreePass(Registry);
initializeMachineLICMPass(Registry);