Skip to content

Commit 008999e

Browse files
authored
[MLIR] Fix crash when using --mlir-timing (#109463)
1 parent b44da24 commit 008999e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/lib/Pass/PassTiming.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ struct PassTiming : public PassInstrumentation {
3535
/// parent thread into which the new thread should be nested.
3636
DenseMap<PipelineParentInfo, unsigned> parentTimerIndices;
3737

38-
/// A stack of the currently active timing scopes per thread.
39-
DenseMap<uint64_t, SmallVector<TimingScope, 4>> activeThreadTimers;
40-
4138
/// The timing manager owned by this instrumentation (in case timing was
4239
/// enabled by the user on the pass manager without providing an external
4340
/// timing manager). This *must* appear before the `ownedTimingScope` to
@@ -46,6 +43,9 @@ struct PassTiming : public PassInstrumentation {
4643
std::unique_ptr<TimingManager> ownedTimingManager;
4744
TimingScope ownedTimingScope;
4845

46+
/// A stack of the currently active timing scopes per thread.
47+
DenseMap<uint64_t, SmallVector<TimingScope, 4>> activeThreadTimers;
48+
4949
/// The root timing scope into which timing is reported.
5050
TimingScope &rootScope;
5151

0 commit comments

Comments
 (0)