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 @alias2 = hidden alias void (), ptr @aliasee_vgpr64_sgpr102
9 ; CHECK-LABEL: {{^}}kernel2:
10 ; CHECK: .amdhsa_next_free_vgpr 53
11 ; CHECK-NEXT: .amdhsa_next_free_sgpr 33
12 define amdgpu_kernel void @kernel2() #0 {
14 call void @alias2() #2
18 define internal void @aliasee_vgpr64_sgpr102() #1 {
20 call void asm sideeffect "; clobber v52 ", "~{v52}"()
24 attributes #0 = { noinline norecurse nounwind optnone }
25 attributes #1 = { noinline norecurse nounwind readnone willreturn "amdgpu-waves-per-eu"="4,10" }
26 attributes #2 = { nounwind readnone willreturn }
28 !llvm.module.flags = !{!0}
29 !0 = !{i32 1, !"amdhsa_code_object_version", i32 500}