[llvm] [ctxprof] Instrumentation: handle direct call targets to aliases (PR #142657)

Snehasish Kumar via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 3 21:08:47 PDT 2025


================
@@ -335,6 +339,41 @@ define void @unreachable() {
 ;
   unreachable
 }
+
+ at foo_alias = weak_odr unnamed_addr alias void (i32, ptr), ptr @foo
+
+define void @call_alias(ptr %a) {
+; INSTRUMENT-LABEL: define void @call_alias(
+; INSTRUMENT-SAME: ptr [[A:%.*]]) {
----------------
snehasish wrote:

Why do you need to split this across 2 lines? Can you drop the SAME line and move the contents to the LABEL line above?

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


More information about the llvm-commits mailing list