1; RUN: llc -O0 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 < %s | FileCheck %s
2
3; CallGraphAnalysis, which CodeGenSCC order depends on, does not look
4; through aliases. If GlobalOpt is never run, we do not see direct
5; calls,
6
7@alias0 = hidden alias void (), void ()* @aliasee_default_vgpr64_sgpr102
8
9; CHECK-LABEL: {{^}}kernel0:
10; CHECK: .amdhsa_next_free_vgpr 53
11; CHECK-NEXT: .amdhsa_next_free_sgpr 33
12define amdgpu_kernel void @kernel0() #0 {
13bb:
14  call void @alias0() #2
15  ret void
16}
17
18define internal void @aliasee_default_vgpr64_sgpr102() #1 {
19bb:
20  call void asm sideeffect "; clobber v52 ", "~{v52}"()
21  ret void
22}
23
24attributes #0 = { noinline norecurse nounwind optnone }
25attributes #1 = { noinline norecurse nounwind readnone willreturn }
26attributes #2 = { nounwind readnone willreturn }
27