1 ; RUN: llc -O0 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 < %s | FileCheck %s
3 ; CallGraphAnalysis, which CodeGenSCC order depends on, does not look
4 ; through aliases. If GlobalOpt is never run, we do not see direct
7 @alias1 = hidden alias void (), ptr @aliasee_vgpr32_sgpr76
9 ; The parent kernel has a higher VGPR usage than the possible callees.
11 ; CHECK-LABEL: {{^}}kernel1:
12 ; CHECK: .amdhsa_next_free_vgpr 41
13 ; CHECK-NEXT: .amdhsa_next_free_sgpr 33
14 define amdgpu_kernel void @kernel1() #0 {
16 call void asm sideeffect "; clobber v40 ", "~{v40}"()
17 call void @alias1() #2
21 define internal void @aliasee_vgpr32_sgpr76() #1 {
23 call void asm sideeffect "; clobber v26 ", "~{v26}"()
27 attributes #0 = { noinline norecurse nounwind optnone }
28 attributes #1 = { noinline norecurse nounwind readnone willreturn "amdgpu-waves-per-eu"="8,10" }
29 attributes #2 = { nounwind readnone willreturn }
31 !llvm.module.flags = !{!0}
32 !0 = !{i32 1, !"amdhsa_code_object_version", i32 500}