diff options
Diffstat (limited to 'llvm/tools/llvm-mca/llvm-mca.cpp')
-rw-r--r-- | llvm/tools/llvm-mca/llvm-mca.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/llvm/tools/llvm-mca/llvm-mca.cpp b/llvm/tools/llvm-mca/llvm-mca.cpp index 7b50196f418..3cb62928349 100644 --- a/llvm/tools/llvm-mca/llvm-mca.cpp +++ b/llvm/tools/llvm-mca/llvm-mca.cpp @@ -22,13 +22,13 @@ //===----------------------------------------------------------------------===// #include "BackendPrinter.h" -#include "BackendStatistics.h" #include "CodeRegion.h" #include "DispatchStatistics.h" #include "InstructionInfoView.h" #include "InstructionTables.h" #include "RegisterFileStatistics.h" #include "ResourcePressureView.h" +#include "RetireControlUnitStatistics.h" #include "SchedulerStatistics.h" #include "SummaryView.h" #include "TimelineView.h" @@ -101,11 +101,16 @@ static cl::opt<bool> cl::init(false)); static cl::opt<bool> - PrintiSchedulerStats("scheduler-stats", + PrintSchedulerStats("scheduler-stats", cl::desc("Print scheduler statistics"), cl::init(false)); static cl::opt<bool> + PrintRetireStats("retire-stats", + cl::desc("Print retire control unit statistics"), + cl::init(false)); + +static cl::opt<bool> PrintResourcePressureView("resource-pressure", cl::desc("Print the resource pressure view"), cl::init(true)); @@ -438,11 +443,11 @@ int main(int argc, char **argv) { if (PrintDispatchStats) Printer.addView(llvm::make_unique<mca::DispatchStatistics>(*STI)); - if (PrintiSchedulerStats) + if (PrintSchedulerStats) Printer.addView(llvm::make_unique<mca::SchedulerStatistics>(*STI)); - if (PrintModeVerbose) - Printer.addView(llvm::make_unique<mca::BackendStatistics>(*STI)); + if (PrintRetireStats) + Printer.addView(llvm::make_unique<mca::RetireControlUnitStatistics>()); if (PrintRegisterFileStats) Printer.addView(llvm::make_unique<mca::RegisterFileStatistics>(*STI)); |