summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>2017-03-30 20:16:02 +0000
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>2017-03-30 20:16:02 +0000
commit89653dfd2afa0708ad3f093371aa27b57a366d5c (patch)
tree37c782e23ea65dbb750f3980e46f045fb6807590 /llvm/test/CodeGen
parent346dcaf1fa0f7823fda655b55d22f628367784f9 (diff)
downloadbcm5719-llvm-89653dfd2afa0708ad3f093371aa27b57a366d5c.tar.gz
bcm5719-llvm-89653dfd2afa0708ad3f093371aa27b57a366d5c.zip
[AMDGPU] Add GlobalOpt parameter to Always Inliner pass
If set to false it does not remove global aliases. With this parameter set to false it should be safe to run the pass before link. Differential Revision: https://reviews.llvm.org/D31489 llvm-svn: 299108
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/AMDGPU/early-inline.ll3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/early-inline.ll b/llvm/test/CodeGen/AMDGPU/early-inline.ll
index 8d1d7642d5f..db397d9e11b 100644
--- a/llvm/test/CodeGen/AMDGPU/early-inline.ll
+++ b/llvm/test/CodeGen/AMDGPU/early-inline.ll
@@ -1,5 +1,8 @@
; RUN: opt -mtriple=amdgcn-- -O1 -S -inline-threshold=1 -amdgpu-early-inline-all %s | FileCheck %s
+; CHECK: @c_alias
+@c_alias = alias i32 (i32), i32 (i32)* @callee
+
define i32 @callee(i32 %x) {
entry:
%mul1 = mul i32 %x, %x
OpenPOWER on IntegriCloud