[clang] [llvm] wip: Move instrumentation passes (PR #92171)
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Tue May 21 12:43:29 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
----------------
aeubanks wrote:
probably don't need this CHECK line, it just makes the test more brittle
https://github.com/llvm/llvm-project/pull/92171
More information about the llvm-commits
mailing list