
Move EntryExitInstrumenter(PostInlining=true) to as late as possible and EntryExitInstrumenter(PostInlining=false) to an early pre-inlining stage (but skip for ThinLTO post-link). This should fix the issues reported in https://github.com/rust-lang/rust/issues/92109 and https://github.com/llvm/llvm-project/issues/52853. These are caused by https://reviews.llvm.org/D97608.
14 lines
413 B
C
14 lines
413 B
C
// RUN: %clang_cc1 -disable-llvm-passes -pg -triple powerpc-ibm-aix7.2.0.0 -emit-llvm %s -o - | FileCheck %s
|
|
// RUN: %clang_cc1 -disable-llvm-passes -pg -triple powerpc64-ibm-aix7.2.0.0 -emit-llvm %s -o - | FileCheck %s
|
|
|
|
void foo() {
|
|
// CHECK: define void @foo() #0 {
|
|
}
|
|
|
|
void bar() {
|
|
// CHECK: define void @bar() #0 {
|
|
foo();
|
|
}
|
|
|
|
// CHECK: attributes #0 = { {{.*}}"instrument-function-entry-inlined"="__mcount"
|