summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mca/ResourcePressureView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-mca/ResourcePressureView.cpp')
-rw-r--r--llvm/tools/llvm-mca/ResourcePressureView.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/tools/llvm-mca/ResourcePressureView.cpp b/llvm/tools/llvm-mca/ResourcePressureView.cpp
index 1dd15e0bbd0..1b9620f628c 100644
--- a/llvm/tools/llvm-mca/ResourcePressureView.cpp
+++ b/llvm/tools/llvm-mca/ResourcePressureView.cpp
@@ -19,8 +19,7 @@ namespace mca {
using namespace llvm;
-void ResourcePressureView::initialize(
- const ArrayRef<uint64_t> ProcResourceMasks) {
+void ResourcePressureView::initialize() {
// Populate the map of resource descriptors.
unsigned R2VIndex = 0;
const MCSchedModel &SM = STI.getSchedModel();
@@ -31,9 +30,7 @@ void ResourcePressureView::initialize(
if (ProcResource.SubUnitsIdxBegin || !NumUnits)
continue;
- uint64_t ResourceMask = ProcResourceMasks[I];
- Resource2VecIndex.insert(
- std::pair<uint64_t, unsigned>(ResourceMask, R2VIndex));
+ Resource2VecIndex.insert(std::pair<uint64_t, unsigned>(I, R2VIndex));
R2VIndex += ProcResource.NumUnits;
}
OpenPOWER on IntegriCloud