diff options
author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2019-03-26 15:38:37 +0000 |
---|---|---|
committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2019-03-26 15:38:37 +0000 |
commit | ddce32e2f3a009b37eb33a5d455c072cefe1d2a0 (patch) | |
tree | 3537f3377f8a229c7149999b9079ab81cbac9b96 /llvm/tools/llvm-mca/Views/SummaryView.cpp | |
parent | bb7c57d36dd6577090e5feb3b29df73770d961ba (diff) | |
download | bcm5719-llvm-ddce32e2f3a009b37eb33a5d455c072cefe1d2a0.tar.gz bcm5719-llvm-ddce32e2f3a009b37eb33a5d455c072cefe1d2a0.zip |
[MCA] Correctly update the UsedResourceGroups mask in the InstrBuilder.
Found by inspection when looking at the debug output of MCA.
This problem was latent, and none of the upstream models were affected by it.
No functional change intended.
llvm-svn: 357000
Diffstat (limited to 'llvm/tools/llvm-mca/Views/SummaryView.cpp')
-rw-r--r-- | llvm/tools/llvm-mca/Views/SummaryView.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-mca/Views/SummaryView.cpp b/llvm/tools/llvm-mca/Views/SummaryView.cpp index e3d85507dc8..5aa53b2df90 100644 --- a/llvm/tools/llvm-mca/Views/SummaryView.cpp +++ b/llvm/tools/llvm-mca/Views/SummaryView.cpp @@ -24,7 +24,8 @@ namespace mca { SummaryView::SummaryView(const MCSchedModel &Model, ArrayRef<MCInst> S, unsigned Width, bool EmitBottleneckAnalysis) - : SM(Model), Source(S), DispatchWidth(Width), LastInstructionIdx(0), + : SM(Model), Source(S), DispatchWidth(Width?Width: Model.IssueWidth), + LastInstructionIdx(0), TotalCycles(0), NumMicroOps(0), BPI({0, 0, 0, 0, 0}), ResourcePressureDistribution(Model.getNumProcResourceKinds(), 0), ProcResourceUsage(Model.getNumProcResourceKinds(), 0), |