summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2018-04-03 15:36:15 +0000
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2018-04-03 15:36:15 +0000
commitfbf37cc6c6cc3b3728178435d03b7ce77ee13c92 (patch)
treeb0541457279f05f938d4d00f7f55347b88024d0b
parentdc62da4e0b76e7d3f5c6abe2d10644787efe60ea (diff)
downloadbcm5719-llvm-fbf37cc6c6cc3b3728178435d03b7ce77ee13c92.tar.gz
bcm5719-llvm-fbf37cc6c6cc3b3728178435d03b7ce77ee13c92.zip
[llvm-mca] Remove redundant include from BackendStatistics.h. NFC
Also use llvm::DenseMap for Histograms (instead of std::map). llvm-svn: 329074
-rw-r--r--llvm/tools/llvm-mca/BackendStatistics.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/tools/llvm-mca/BackendStatistics.h b/llvm/tools/llvm-mca/BackendStatistics.h
index eba8f251f2a..c3cec95f8df 100644
--- a/llvm/tools/llvm-mca/BackendStatistics.h
+++ b/llvm/tools/llvm-mca/BackendStatistics.h
@@ -57,19 +57,18 @@
#ifndef LLVM_TOOLS_LLVM_MCA_BACKENDSTATISTICS_H
#define LLVM_TOOLS_LLVM_MCA_BACKENDSTATISTICS_H
-#include "Backend.h"
#include "View.h"
#include "llvm/ADT/SmallVector.h"
+#include "llvm/ADT/DenseMap.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/Support/raw_ostream.h"
-#include <map>
namespace mca {
class BackendStatistics : public View {
const llvm::MCSubtargetInfo &STI;
- using Histogram = std::map<unsigned, unsigned>;
+ using Histogram = llvm::DenseMap<unsigned, unsigned>;
Histogram DispatchGroupSizePerCycle;
Histogram RetiredPerCycle;
Histogram IssuedPerCycle;
OpenPOWER on IntegriCloud