Skip to content

Commit f6a71b5

Browse files
committed
Address review comments.
Created using spr 1.3.6-beta.1
2 parents 4724c6e + 721cb8b commit f6a71b5

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

llvm/test/CodeGen/AArch64/callsite-emit-calleetypeid-tailcall.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
;; computed as the type id from the callee_type metadata.
66
; RUN: llc --call-graph-section -mtriple aarch64-linux-gnu < %s -stop-after=finalize-isel -o - | FileCheck %s
77

8-
define dso_local noundef i32 @_Z13call_indirectPFicEc(ptr noundef readonly captures(none) %func, i8 noundef signext %x) local_unnamed_addr !type !0 {
8+
define i32 @_Z13call_indirectPFicEc(ptr %func, i8 %x) local_unnamed_addr !type !0 {
99
entry:
1010
; CHECK: callSites:
1111
; CHECK-NEXT: - { bb: {{.*}}, offset: {{.*}}, fwdArgRegs: [], calleeTypeIds:

llvm/test/CodeGen/ARM/callsite-emit-calleetypeid-tailcall.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
;; computed as the type id from the callee_type metadata.
66
; RUN: llc --call-graph-section -mtriple arm-linux-gnu < %s -stop-after=finalize-isel -o - | FileCheck %s
77

8-
define dso_local noundef i32 @_Z13call_indirectPFicEc(ptr noundef readonly captures(none) %func, i8 noundef signext %x) local_unnamed_addr !type !0 {
8+
define i32 @_Z13call_indirectPFicEc(ptr %func, i8 %x) local_unnamed_addr !type !0 {
99
entry:
1010
; CHECK: callSites:
1111
; CHECK-NEXT: - { bb: {{.*}}, offset: {{.*}}, fwdArgRegs: [], calleeTypeIds:

llvm/test/CodeGen/MIR/X86/callsite-emit-calleetypeid.ll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
; PRINTER_CSI: name: main
3939
; PRINTER_CSI: callSites:
4040
; PRINTER_CSI-NEXT: - { bb: {{.*}}, offset: {{.*}}, fwdArgRegs:
41-
; PRINTER_CSI-NEXT: { arg: 0, reg: '$edi' }
41+
; PRINTER_CSI-NEXT: { arg: 0, reg: {{.*}} }
4242
; PRINTER_CSI-NOT: calleeTypeIds:
4343

4444

@@ -49,7 +49,7 @@
4949
; PARSER_CSI: name: main
5050
; PARSER_CSI: callSites:
5151
; PARSER_CSI-NEXT: - { bb: {{.*}}, offset: {{.*}}, fwdArgRegs:
52-
; PARSER_CSI-NEXT: { arg: 0, reg: '$edi' }
52+
; PARSER_CSI-NEXT: { arg: 0, reg: {{.*}} }
5353
; PARSER_CSI-NOT: calleeTypeIds:
5454

5555
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -64,7 +64,7 @@
6464
; PRINTER_CGS_CSI: name: main
6565
; PRINTER_CGS_CSI: callSites:
6666
; PRINTER_CGS_CSI-NEXT: - { bb: {{.*}}, offset: {{.*}}, fwdArgRegs:
67-
; PRINTER_CGS_CSI-NEXT: { arg: 0, reg: '$edi' }, calleeTypeIds:
67+
; PRINTER_CGS_CSI-NEXT: { arg: 0, reg: {{.*}} }, calleeTypeIds:
6868
; PRINTER_CGS_CSI-NEXT: [ 7854600665770582568 ] }
6969

7070

@@ -75,7 +75,7 @@
7575
; PARSER_CGS_CSI: name: main
7676
; PARSER_CGS_CSI: callSites:
7777
; PARSER_CGS_CSI-NEXT: - { bb: {{.*}}, offset: {{.*}}, fwdArgRegs:
78-
; PARSER_CGS_CSI-NEXT: { arg: 0, reg: '$edi' }, calleeTypeIds:
78+
; PARSER_CGS_CSI-NEXT: { arg: 0, reg: {{.*}} }, calleeTypeIds:
7979
; PARSER_CGS_CSI-NEXT: [ 7854600665770582568 ] }
8080

8181
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

llvm/test/CodeGen/Mips/callsite-emit-calleetypeid-tailcall.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
;; computed as the type id from the callee_type metadata.
66
; RUN: llc --call-graph-section -mtriple=mips-linux-gnu < %s -stop-after=finalize-isel -o - | FileCheck %s
77

8-
define dso_local noundef i32 @_Z13call_indirectPFicEc(ptr noundef readonly captures(none) %func, i8 noundef signext %x) local_unnamed_addr !type !0 {
8+
define i32 @_Z13call_indirectPFicEc(ptr %func, i8 %x) local_unnamed_addr !type !0 {
99
entry:
1010
; CHECK: callSites:
1111
; CHECK-NEXT: - { bb: {{.*}}, offset: {{.*}}, fwdArgRegs: [], calleeTypeIds:

llvm/test/CodeGen/RISCV/callsite-emit-calleetypeid-tailcall.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
; RUN: llc --call-graph-section -mtriple riscv64 < %s -stop-after=finalize-isel -o - | FileCheck %s
77
; RUN: llc --call-graph-section -mtriple riscv32 < %s -stop-after=finalize-isel -o - | FileCheck %s
88

9-
define dso_local noundef i32 @_Z13call_indirectPFicEc(ptr noundef readonly captures(none) %func, i8 noundef signext %x) local_unnamed_addr !type !0 {
9+
define i32 @_Z13call_indirectPFicEc(ptr %func, i8 %x) local_unnamed_addr !type !0 {
1010
entry:
1111
; CHECK: callSites:
1212
; CHECK-NEXT: - { bb: {{.*}}, offset: {{.*}}, fwdArgRegs: [], calleeTypeIds:

llvm/test/CodeGen/X86/callsite-emit-calleetypeid-tailcall.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
;; computed as the type id from the callee_type metadata.
66
; RUN: llc --call-graph-section -mtriple=x86_64-unknown-linux < %s -stop-after=finalize-isel -o - | FileCheck %s
77

8-
define dso_local noundef i32 @_Z13call_indirectPFicEc(ptr noundef readonly captures(none) %func, i8 noundef signext %x) local_unnamed_addr !type !0 {
8+
define i32 @_Z13call_indirectPFicEc(ptr %func, i8 %x) local_unnamed_addr !type !0 {
99
entry:
1010
; CHECK: callSites:
1111
; CHECK-NEXT: - { bb: {{.*}}, offset: {{.*}}, fwdArgRegs: [], calleeTypeIds:

llvm/test/Transforms/InstCombine/callee-type-metadata.ll

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
;; Test if the callee_type metadata is dropped when an indirect function call through a function ptr is promoted
22
;; to a direct function call during instcombine.
33

4-
; RUN: opt < %s -O2 | llvm-dis | FileCheck %s
4+
; RUN: opt < %s -passes="cgscc(inline),instcombine" -S | FileCheck %s
55

6-
define dso_local noundef i32 @_Z13call_indirectPFicEc(ptr noundef %func, i8 noundef signext %x) local_unnamed_addr !type !0 {
6+
define i32 @_Z13call_indirectPFicEc(ptr %func, i8 %x) local_unnamed_addr !type !0 {
77
entry:
8-
%call = call noundef i32 %func(i8 noundef signext %x), !callee_type !1
8+
%call = call i32 %func(i8 %x), !callee_type !1
99
ret i32 %call
1010
}
1111

12-
define dso_local noundef i32 @_Z3barv() local_unnamed_addr !type !3 {
12+
define i32 @_Z3barv() local_unnamed_addr !type !3 {
1313
entry:
14-
; CHECK: %call.i = tail call noundef i32 @_Z3fooc(i8 noundef signext 97)
15-
; CHECK-NOT: %call.i = tail call noundef i32 @_Z3fooc(i8 noundef signext 97), !callee_type !1
16-
%call = call noundef i32 @_Z13call_indirectPFicEc(ptr noundef nonnull @_Z3fooc, i8 noundef signext 97)
14+
; CHECK: %call.i = call i32 @_Z3fooc(i8 97)
15+
; CHECK-NOT: %call.i = call i32 @_Z3fooc(i8 97), !callee_type !1
16+
%call = call i32 @_Z13call_indirectPFicEc(ptr nonnull @_Z3fooc, i8 97)
1717
ret i32 %call
1818
}
1919

20-
declare !type !2 noundef i32 @_Z3fooc(i8 noundef signext)
20+
declare !type !2 i32 @_Z3fooc(i8 signext)
2121

2222
!0 = !{i64 0, !"_ZTSFiPvcE.generalized"}
2323
!1 = !{!2}

0 commit comments

Comments
 (0)