diff options
| author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-06-18 17:04:56 +0000 |
|---|---|---|
| committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-06-18 17:04:56 +0000 |
| commit | a88281d8ae3a6bb0c4da126910b9b30fe068ad55 (patch) | |
| tree | 15d5b6af934bbeefb17057656ba1ba0b46ebbc48 /llvm/tools/llvm-mca/DispatchStatistics.h | |
| parent | b35f9e14598a9cf811640b90fa7730e2000d47b9 (diff) | |
| download | bcm5719-llvm-a88281d8ae3a6bb0c4da126910b9b30fe068ad55.tar.gz bcm5719-llvm-a88281d8ae3a6bb0c4da126910b9b30fe068ad55.zip | |
[llvm-mca] Use an ordered map to collect hardware statistics. NFC.
Histogram entries are now ordered by key. This should improves their
readability when statistics are printed.
llvm-svn: 334961
Diffstat (limited to 'llvm/tools/llvm-mca/DispatchStatistics.h')
| -rw-r--r-- | llvm/tools/llvm-mca/DispatchStatistics.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-mca/DispatchStatistics.h b/llvm/tools/llvm-mca/DispatchStatistics.h index 3b735a16266..7b98a848df6 100644 --- a/llvm/tools/llvm-mca/DispatchStatistics.h +++ b/llvm/tools/llvm-mca/DispatchStatistics.h @@ -35,9 +35,9 @@ #define LLVM_TOOLS_LLVM_MCA_DISPATCHVIEW_H #include "View.h" -#include "llvm/ADT/DenseMap.h" #include "llvm/ADT/SmallVector.h" #include "llvm/MC/MCSubtargetInfo.h" +#include <map> namespace mca { @@ -49,7 +49,7 @@ class DispatchStatistics : public View { // is one counter for every generic stall kind (see class HWStallEvent). llvm::SmallVector<unsigned, 8> HWStalls; - using Histogram = llvm::DenseMap<unsigned, unsigned>; + using Histogram = std::map<unsigned, unsigned>; Histogram DispatchGroupSizePerCycle; void updateHistograms() { |

