diff options
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/early-inline.ll')
| -rw-r--r-- | llvm/test/CodeGen/AMDGPU/early-inline.ll | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/early-inline.ll b/llvm/test/CodeGen/AMDGPU/early-inline.ll index a4f970ee238..eb533048e8d 100644 --- a/llvm/test/CodeGen/AMDGPU/early-inline.ll +++ b/llvm/test/CodeGen/AMDGPU/early-inline.ll @@ -16,10 +16,18 @@ entry: ; CHECK: mul i32 ; CHECK-NOT: call i32 -; CHECK: define i32 @c_alias define amdgpu_kernel void @caller(i32 %x) { entry: %res = call i32 @callee(i32 %x) store volatile i32 %res, i32 addrspace(1)* undef ret void } + +; CHECK-LABEL: @alias_caller( +; CHECK-NOT: call +define amdgpu_kernel void @alias_caller(i32 %x) { +entry: + %res = call i32 @c_alias(i32 %x) + store volatile i32 %res, i32 addrspace(1)* undef + ret void +} |

