From: Andrea Di Biagio Date: Wed, 20 Feb 2019 18:23:19 +0000 (+0000) Subject: [MCA][Scheduler] Correctly initialize field NumDispatchedToThePendingSet. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4da600182d0cd3357b9b2a589eb5aacad262d02b;p=llvm [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 --- 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)); }