[Mlir-commits] [mlir] [MLIR][Timing] Fix timing report of nested pass pipeline and negative Rest field when using -mlir-timing (Try to close #169443) (PR #169615)
Mehdi Amini
llvmlistbot at llvm.org
Wed Nov 26 10:06:18 PST 2025
================
@@ -90,6 +90,9 @@ struct PassTiming : public PassInstrumentation {
auto &activeTimers = activeThreadTimers[tid];
auto &parentScope = activeTimers.empty() ? rootScope : activeTimers.back();
+ // Record the parent information for this pass so nested pipelines can find it,
+ // regardless of whether this is an adaptor pass or a regular pass.
+ parentTimerIndices[{tid, pass}] = activeTimers.size();
if (auto *adaptor = dyn_cast<OpToOpPassAdaptor>(pass)) {
parentTimerIndices[{tid, pass}] = activeTimers.size();
----------------
joker-eph wrote:
Isn't this line redundant now?
https://github.com/llvm/llvm-project/pull/169615
More information about the Mlir-commits
mailing list