[llvm] r354493 - [MCA][Scheduler] Correctly initialize field NumDispatchedToThePendingSet.

Andrea Di Biagio via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 20 10:23:19 PST 2019


Author: adibiagio
Date: Wed Feb 20 10:23:19 2019
New Revision: 354493

URL: http://llvm.org/viewvc/llvm-project?rev=354493&view=rev
Log:
[MCA][Scheduler] Correctly initialize field NumDispatchedToThePendingSet.

This should have been part of r354490.

Modified:
    llvm/trunk/include/llvm/MCA/HardwareUnits/Scheduler.h

Modified: llvm/trunk/include/llvm/MCA/HardwareUnits/Scheduler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MCA/HardwareUnits/Scheduler.h?rev=354493&r1=354492&r2=354493&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MCA/HardwareUnits/Scheduler.h (original)
+++ llvm/trunk/include/llvm/MCA/HardwareUnits/Scheduler.h Wed Feb 20 10:23:19 2019
@@ -160,7 +160,8 @@ public:
 
   Scheduler(std::unique_ptr<ResourceManager> RM, LSUnit &Lsu,
             std::unique_ptr<SchedulerStrategy> SelectStrategy)
-      : LSU(Lsu), Resources(std::move(RM)), BusyResourceUnits(0) {
+      : LSU(Lsu), Resources(std::move(RM)), BusyResourceUnits(0),
+        NumDispatchedToThePendingSet(0) {
     initializeStrategy(std::move(SelectStrategy));
   }
 




More information about the llvm-commits mailing list