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/llvm-mca.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/llvm-mca.cpp')
-rw-r--r-- | llvm/tools/llvm-mca/llvm-mca.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/tools/llvm-mca/llvm-mca.cpp b/llvm/tools/llvm-mca/llvm-mca.cpp index 17b19d1818f..ce253af1fe7 100644 --- a/llvm/tools/llvm-mca/llvm-mca.cpp +++ b/llvm/tools/llvm-mca/llvm-mca.cpp @@ -381,17 +381,13 @@ int main(int argc, char **argv) { const MCSchedModel &SM = STI->getSchedModel(); - unsigned Width = SM.IssueWidth; - if (DispatchWidth) - Width = DispatchWidth; - // Create an instruction builder. mca::InstrBuilder IB(*STI, *MCII, *MRI, MCIA.get()); // Create a context to control ownership of the pipeline hardware. mca::Context MCA(*MRI, *STI); - mca::PipelineOptions PO(Width, RegisterFileSize, LoadQueueSize, + mca::PipelineOptions PO(DispatchWidth, RegisterFileSize, LoadQueueSize, StoreQueueSize, AssumeNoAlias, EnableBottleneckAnalysis); @@ -470,7 +466,7 @@ int main(int argc, char **argv) { if (PrintSummaryView) Printer.addView(llvm::make_unique<mca::SummaryView>( - SM, Insts, Width, EnableBottleneckAnalysis)); + SM, Insts, DispatchWidth, EnableBottleneckAnalysis)); if (PrintInstructionInfoView) Printer.addView( |