[all-commits] [llvm/llvm-project] a312cb: [llvm][timing] Reset recycled timer with different...
Weiwei C via All-commits
all-commits at lists.llvm.org
Fri Sep 18 18:42:20 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a312cb0c81cf1e4cf1a3bc469b15bd5216c59469
https://github.com/llvm/llvm-project/commit/a312cb0c81cf1e4cf1a3bc469b15bd5216c59469
Author: Weiwei C <weiwei.chen at modular.com>
Date: 2026-09-18 (Fri, 18 Sep 2026)
Changed paths:
M llvm/lib/IR/PassTimingInfo.cpp
Log Message:
-----------
[llvm][timing] Reset recycled timer with different names. (#218492)
Legacy pass-manager timers are keyed by the pass instance pointer and
the map entry outlives the pass, so a pass allocated at a recycled
address inherits the previous pass's timer and reports its time under
that pass's name. When a recycled instance which has different name can
end up having leftover name comes from whichever target ran before.
Re-create the timer when the name no longer matches.
fixes: #218491
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list