1; RUN: opt -mtriple=amdgcn--amdhsa -S -passes=inline -inline-threshold=0 -debug-only=inline-cost < %s 2>&1 | FileCheck %s 2 3; REQUIRES: asserts 4 5target datalayout = "A5" 6 7; Verify we are properly adding cost of the -amdgpu-inline-arg-alloca-cost to the threshold. 8 9; CHECK: NumAllocaArgs: 1 10; CHECK: Threshold: 66000 11 12define void @use_private_ptr_arg(float addrspace(5)* nocapture %p) { 13 ret void 14} 15 16define amdgpu_kernel void @test_inliner_pvt_ptr(float addrspace(1)* nocapture %a, i32 %n) { 17entry: 18 %pvt_arr = alloca [64 x float], align 4, addrspace(5) 19 %to.ptr = getelementptr inbounds [64 x float], [64 x float] addrspace(5)* %pvt_arr, i32 0, i32 0 20 call void @use_private_ptr_arg(float addrspace(5)* %to.ptr) 21 ret void 22} 23