diff options
author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-04-11 11:37:46 +0000 |
---|---|---|
committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-04-11 11:37:46 +0000 |
commit | 1cc29c045e07dd2f9adda3a5569df6e249613135 (patch) | |
tree | 81d5f1ee54ad066629152e6f8fb42d9d6c4481e7 /llvm/tools/llvm-mca/llvm-mca.cpp | |
parent | d928201ac5ef2d61492720bd0f7323f225ffdb3e (diff) | |
download | bcm5719-llvm-1cc29c045e07dd2f9adda3a5569df6e249613135.tar.gz bcm5719-llvm-1cc29c045e07dd2f9adda3a5569df6e249613135.zip |
[llvm-mca] Move the logic that prints scheduler statistics from BackendStatistics to its own view.
Added flag -scheduler-stats to print scheduler related statistics.
llvm-svn: 329792
Diffstat (limited to 'llvm/tools/llvm-mca/llvm-mca.cpp')
-rw-r--r-- | llvm/tools/llvm-mca/llvm-mca.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/tools/llvm-mca/llvm-mca.cpp b/llvm/tools/llvm-mca/llvm-mca.cpp index f49ae23309d..7b50196f418 100644 --- a/llvm/tools/llvm-mca/llvm-mca.cpp +++ b/llvm/tools/llvm-mca/llvm-mca.cpp @@ -29,6 +29,7 @@ #include "InstructionTables.h" #include "RegisterFileStatistics.h" #include "ResourcePressureView.h" +#include "SchedulerStatistics.h" #include "SummaryView.h" #include "TimelineView.h" #include "llvm/MC/MCAsmInfo.h" @@ -100,6 +101,11 @@ static cl::opt<bool> cl::init(false)); static cl::opt<bool> + PrintiSchedulerStats("scheduler-stats", + cl::desc("Print scheduler statistics"), + cl::init(false)); + +static cl::opt<bool> PrintResourcePressureView("resource-pressure", cl::desc("Print the resource pressure view"), cl::init(true)); @@ -432,6 +438,9 @@ int main(int argc, char **argv) { if (PrintDispatchStats) Printer.addView(llvm::make_unique<mca::DispatchStatistics>(*STI)); + if (PrintiSchedulerStats) + Printer.addView(llvm::make_unique<mca::SchedulerStatistics>(*STI)); + if (PrintModeVerbose) Printer.addView(llvm::make_unique<mca::BackendStatistics>(*STI)); |