diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2011-11-02 07:17:12 +0000 |
|---|---|---|
| committer | Stephen Hines <srhines@google.com> | 2011-11-14 09:11:36 -0800 |
| commit | 8f27862ad87f3147119f78e004533ff1d8bad1f2 (patch) | |
| tree | 60a0e36ee9ab628167ef874945959abccf046637 /lib/CodeGen/CodeGen.cpp | |
| parent | 8778b0cc5e75d1910cda21b6130cfa69235fe6e2 (diff) | |
| download | external_llvm-8f27862ad87f3147119f78e004533ff1d8bad1f2.zip external_llvm-8f27862ad87f3147119f78e004533ff1d8bad1f2.tar.gz external_llvm-8f27862ad87f3147119f78e004533ff1d8bad1f2.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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143537 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGen.cpp')
| -rw-r--r-- | lib/CodeGen/CodeGen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGen.cpp b/lib/CodeGen/CodeGen.cpp index a911534..899baad 100644 --- a/lib/CodeGen/CodeGen.cpp +++ b/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); |
