summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/early-inline.ll
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2018-07-10 14:03:41 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2018-07-10 14:03:41 +0000
commita680199a966b518e1cc7444aa025a4fcda8b1ba4 (patch)
tree6ee8b80e9bcd57af6f18ede6aa24d0656d0e37d1 /llvm/test/CodeGen/AMDGPU/early-inline.ll
parent3467fac0918e16dc6a176150f6094629e593e4c3 (diff)
downloadbcm5719-llvm-a680199a966b518e1cc7444aa025a4fcda8b1ba4.tar.gz
bcm5719-llvm-a680199a966b518e1cc7444aa025a4fcda8b1ba4.zip
Reapply "AMDGPU: Force inlining if LDS global address is used"
This reverts commit r336623 llvm-svn: 336675
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/early-inline.ll')
-rw-r--r--llvm/test/CodeGen/AMDGPU/early-inline.ll10
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
+}
OpenPOWER on IntegriCloud