Skip to content

Commit 4da6001

Browse files
Andrea Di BiagioAndrea Di Biagio
authored andcommitted
[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
1 parent e8f9913 commit 4da6001

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/llvm/MCA/HardwareUnits/Scheduler.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ class Scheduler : public HardwareUnit {
160160

161161
Scheduler(std::unique_ptr<ResourceManager> RM, LSUnit &Lsu,
162162
std::unique_ptr<SchedulerStrategy> SelectStrategy)
163-
: LSU(Lsu), Resources(std::move(RM)), BusyResourceUnits(0) {
163+
: LSU(Lsu), Resources(std::move(RM)), BusyResourceUnits(0),
164+
NumDispatchedToThePendingSet(0) {
164165
initializeStrategy(std::move(SelectStrategy));
165166
}
166167

0 commit comments

Comments
 (0)