llvm / llvm/llvm-project

[LLVM][Timing] Legacy pass-manager timer recycled instance with stale names.

Open
#218,491 0 comments 0 reactions 1 assignee Claimed by @weiweichen View on GitHub
llvm
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.