-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Instrumentation (-Zinstrument-mcount) broken due to missing LLVM-pass since LLVM13 update #92109
Copy link
Copy link
Closed
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.Category: This is a bug.P-mediumMedium priorityMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-untriagedUntriaged performance or correctness regression.Untriaged performance or correctness regression.
Metadata
Metadata
Assignees
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.Category: This is a bug.P-mediumMedium priorityMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-untriagedUntriaged performance or correctness regression.Untriaged performance or correctness regression.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Issue
I tried to compile a generic hello-world binary with the
-Zinstrument-mcountcompiler option.I expected every function-entry to have a call to
mcount().Instead, there are no such calls inserted.
Triage
I have triaged the bug, and it first occurred in
nightly-2021-08-22, the first version with LLVM13.The LLVM-IR still contains the
"instrument-function-entry-inlined"="mcount"attributes, but the corrosponding llvm-pass is not run anymore.Verbose Versions: