[clang] [llvm] wip: Move instrumentation passes (PR #92171)

Egor Pasko via llvm-commits llvm-commits at lists.llvm.org
Thu May 23 07:44:10 PDT 2024


================
@@ -0,0 +1,29 @@
+; RUN: llc -mtriple=x86_64-- -O0 < %s | FileCheck %s
+; RUN: llc -mtriple=x86_64-- -O1 < %s | FileCheck %s
+; RUN: llc -mtriple=x86_64-- -O2 < %s | FileCheck %s
+
+; The codegen should insert post-inlining instrumentation calls and should not
+; insert pre-inlining instrumentation.
+
+; CHECK-NOT:       callq __cyg_profile_func_enter
+
+define void @leaf_function() #0 {
+; CHECK-LABEL: leaf_function:
+; CHECK:       callq __cyg_profile_func_enter_bare
+; CHECK:       movq	leaf_function at GOTPCREL(%rip), %rdi
----------------
pasko wrote:

OK, I removed the argument passing check

https://github.com/llvm/llvm-project/pull/92171


More information about the llvm-commits mailing list