diff options
| author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-10-12 12:38:27 +0000 |
|---|---|---|
| committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-10-12 12:38:27 +0000 |
| commit | b7f120f07165b462794711c470e188374e377991 (patch) | |
| tree | 7e81841eddf3037cf80730d5a6ee3b2d02045e24 /llvm/tools/llvm-mca | |
| parent | ff11ae72c646efd2a88ae621050f7afa095a9146 (diff) | |
| download | bcm5719-llvm-b7f120f07165b462794711c470e188374e377991.tar.gz bcm5719-llvm-b7f120f07165b462794711c470e188374e377991.zip | |
[llvm-mca] Remove method RegisterFileStatistics::initializeRegisterFileInfo(). NFC
llvm-svn: 344339
Diffstat (limited to 'llvm/tools/llvm-mca')
| -rw-r--r-- | llvm/tools/llvm-mca/Views/RegisterFileStatistics.cpp | 3 | ||||
| -rw-r--r-- | llvm/tools/llvm-mca/Views/RegisterFileStatistics.h | 7 |
2 files changed, 3 insertions, 7 deletions
diff --git a/llvm/tools/llvm-mca/Views/RegisterFileStatistics.cpp b/llvm/tools/llvm-mca/Views/RegisterFileStatistics.cpp index 7dbc76a51e1..cd540e9dc60 100644 --- a/llvm/tools/llvm-mca/Views/RegisterFileStatistics.cpp +++ b/llvm/tools/llvm-mca/Views/RegisterFileStatistics.cpp @@ -19,7 +19,8 @@ using namespace llvm; namespace mca { -void RegisterFileStatistics::initializeRegisterFileInfo() { +RegisterFileStatistics::RegisterFileStatistics(const llvm::MCSubtargetInfo &sti) + : STI(sti) { const MCSchedModel &SM = STI.getSchedModel(); RegisterFileUsage Empty = {0, 0, 0}; if (!SM.hasExtraProcessorInfo()) { diff --git a/llvm/tools/llvm-mca/Views/RegisterFileStatistics.h b/llvm/tools/llvm-mca/Views/RegisterFileStatistics.h index 3dcac4d4f75..1e89d66dc50 100644 --- a/llvm/tools/llvm-mca/Views/RegisterFileStatistics.h +++ b/llvm/tools/llvm-mca/Views/RegisterFileStatistics.h @@ -51,15 +51,10 @@ class RegisterFileStatistics : public View { // There is one entry for each register file implemented by the processor. llvm::SmallVector<RegisterFileUsage, 4> RegisterFiles; - void initializeRegisterFileInfo(); - public: - RegisterFileStatistics(const llvm::MCSubtargetInfo &sti) : STI(sti) { - initializeRegisterFileInfo(); - } + RegisterFileStatistics(const llvm::MCSubtargetInfo &sti); void onEvent(const HWInstructionEvent &Event) override; - void printView(llvm::raw_ostream &OS) const override; }; } // namespace mca |

