diff options
| author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-03-10 16:55:07 +0000 |
|---|---|---|
| committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-03-10 16:55:07 +0000 |
| commit | 0c54129907191f44780af22582da18ea4cf2a57e (patch) | |
| tree | aa3786495c4ea061c1a0db9c9a1a6efaf9d1c103 /llvm/tools/llvm-mca/BackendStatistics.cpp | |
| parent | 8224241f757c57fcb6696264ca3ae66a9e82de9a (diff) | |
| download | bcm5719-llvm-0c54129907191f44780af22582da18ea4cf2a57e.tar.gz bcm5719-llvm-0c54129907191f44780af22582da18ea4cf2a57e.zip | |
[llvm-mca] Views are now independent from resource masks. NFCI
This change removes method Backend::getProcResourceMasks() and simplifies some
logic in the Views. This effectively removes yet another dependency between the
views and the Backend.
No functional change intended.
llvm-svn: 327214
Diffstat (limited to 'llvm/tools/llvm-mca/BackendStatistics.cpp')
| -rw-r--r-- | llvm/tools/llvm-mca/BackendStatistics.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/tools/llvm-mca/BackendStatistics.cpp b/llvm/tools/llvm-mca/BackendStatistics.cpp index 358ce280886..46981d5fa61 100644 --- a/llvm/tools/llvm-mca/BackendStatistics.cpp +++ b/llvm/tools/llvm-mca/BackendStatistics.cpp @@ -121,14 +121,13 @@ void BackendStatistics::printSchedulerUsage( std::string Buffer; raw_string_ostream TempStream(Buffer); TempStream << "\n\nScheduler's queue usage:\n"; - const ArrayRef<uint64_t> ResourceMasks = B.getProcResourceMasks(); for (unsigned I = 0, E = SM.getNumProcResourceKinds(); I < E; ++I) { const MCProcResourceDesc &ProcResource = *SM.getProcResource(I); if (!ProcResource.BufferSize) continue; for (const BufferUsageEntry &Entry : Usage) - if (ResourceMasks[I] == Entry.first) + if (I == Entry.first) TempStream << ProcResource.Name << ", " << Entry.second << '/' << ProcResource.BufferSize << '\n'; } |

