1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test/CodeGen/AMDGPU/early-inline-alias.ll
Konstantin Zhuravlyov c2d33a361e [AMDGPU] Run always inliner early in opt
Differential Revision: https://reviews.llvm.org/D31141

llvm-svn: 298281
2017-03-20 18:06:45 +00:00

13 lines
349 B
LLVM

; RUN: opt -mtriple=amdgcn-- -O1 -S -inline-threshold=1 %s | FileCheck %s
; CHECK: @add1alias = alias i32 (i32), i32 (i32)* @add1
; CHECK: @add1alias2 = alias i32 (i32), i32 (i32)* @add1
@add1alias = alias i32 (i32), i32 (i32)* @add1
@add1alias2 = alias i32 (i32), i32 (i32)* @add1
define i32 @add1(i32) {
%2 = add nsw i32 %0, 1
ret i32 %2
}