summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mca/SchedulerStatistics.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [llvm-mca] Simplify eventing by adding an onEvent templated method.Matt Davis2018-07-121-1/+1
| | | | | | | | | | | | | | | | | | | | Summary: This patch eliminates some redundancy in iterating across Listeners for the Instruction and Stall HWEvents, by introducing a template onEvent routine. This change was suggested by @courbet in https://reviews.llvm.org/D48576. I hope that this patch addresses that suggestion appropriately. I do like this change better than what we had previously. Reviewers: andreadb, courbet, RKSimon Reviewed By: andreadb, courbet Subscribers: javed.absar, tschuett, gbedwell, llvm-commits, courbet Differential Revision: https://reviews.llvm.org/D48672 llvm-svn: 336916
* [llvm-mca] Use an ordered map to collect hardware statistics. NFC.Andrea Di Biagio2018-06-181-2/+4
| | | | | | | Histogram entries are now ordered by key. This should improves their readability when statistics are printed. llvm-svn: 334961
* [llvm-mca] Minor code cleanup. NFCAndrea Di Biagio2018-04-111-3/+3
| | | | llvm-svn: 329796
* [llvm-mca] Move the logic that prints scheduler statistics from ↵Andrea Di Biagio2018-04-111-0/+92
BackendStatistics to its own view. Added flag -scheduler-stats to print scheduler related statistics. llvm-svn: 329792
OpenPOWER on IntegriCloud