[llvm] r329074 - [llvm-mca] Remove redundant include from BackendStatistics.h. NFC

Andrea Di Biagio via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 3 08:36:15 PDT 2018


Author: adibiagio
Date: Tue Apr  3 08:36:15 2018
New Revision: 329074

URL: http://llvm.org/viewvc/llvm-project?rev=329074&view=rev
Log:
[llvm-mca] Remove redundant include from BackendStatistics.h. NFC

Also use llvm::DenseMap for Histograms (instead of std::map).

Modified:
    llvm/trunk/tools/llvm-mca/BackendStatistics.h

Modified: llvm/trunk/tools/llvm-mca/BackendStatistics.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/BackendStatistics.h?rev=329074&r1=329073&r2=329074&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/BackendStatistics.h (original)
+++ llvm/trunk/tools/llvm-mca/BackendStatistics.h Tue Apr  3 08:36:15 2018
@@ -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;




More information about the llvm-commits mailing list