From 4da600182d0cd3357b9b2a589eb5aacad262d02b Mon Sep 17 00:00:00 2001 From: Andrea Di Biagio Date: Wed, 20 Feb 2019 18:23:19 +0000 Subject: [PATCH] [MCA][Scheduler] Correctly initialize field NumDispatchedToThePendingSet. This should have been part of r354490. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354493 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/MCA/HardwareUnits/Scheduler.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/llvm/MCA/HardwareUnits/Scheduler.h b/include/llvm/MCA/HardwareUnits/Scheduler.h index 38fe796c56c..33caf9fcc80 100644 --- a/include/llvm/MCA/HardwareUnits/Scheduler.h +++ b/include/llvm/MCA/HardwareUnits/Scheduler.h @@ -160,7 +160,8 @@ public: Scheduler(std::unique_ptr RM, LSUnit &Lsu, std::unique_ptr SelectStrategy) - : LSU(Lsu), Resources(std::move(RM)), BusyResourceUnits(0) { + : LSU(Lsu), Resources(std::move(RM)), BusyResourceUnits(0), + NumDispatchedToThePendingSet(0) { initializeStrategy(std::move(SelectStrategy)); } -- 2.50.1