[llvm-branch-commits] [llvm] [llvm] Extract and propagate indirect call type id (PR #87575)
Matt Arsenault via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Apr 23 03:14:26 PDT 2025
================
@@ -0,0 +1,19 @@
+;; Tests that call site callee type ids can be extracted and set from
+;; callee_type metadata for indirect tail calls.
+
+;; Verify the exact calleeTypeId value to ensure it is not garbage but the value
+;; computed as the type id from the callee_type metadata.
+; RUN: llc --call-graph-section -mtriple arm-linux-gnu < %s -stop-after=finalize-isel -o - | FileCheck %s
+
+define dso_local noundef i32 @_Z13call_indirectPFicEc(ptr noundef readonly captures(none) %func, i8 noundef signext %x) local_unnamed_addr !type !0 {
+entry:
----------------
arsenm wrote:
```suggestion
define i32 @_Z13call_indirectPFicEc(ptr %func, i8 %x) local_unnamed_addr !type !0 {
entry:
```
Remove unnecessary attributes
https://github.com/llvm/llvm-project/pull/87575
More information about the llvm-branch-commits
mailing list