annotate test/CodeGen/AMDGPU/early-inline-alias.ll @ 146:3fc4d5c3e21e

set tail call flag for code segment in CGCAll
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 19:23:36 +0900
parents 803732b1fca8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
1 ; RUN: opt -mtriple=amdgcn-- -O1 -S -inline-threshold=1 %s | FileCheck %s
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
3 ; CHECK: @add1alias = alias i32 (i32), i32 (i32)* @add1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
4 ; CHECK: @add1alias2 = alias i32 (i32), i32 (i32)* @add1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
5
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
6 @add1alias = alias i32 (i32), i32 (i32)* @add1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
7 @add1alias2 = alias i32 (i32), i32 (i32)* @add1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
8
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
9 define i32 @add1(i32) {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
10 %2 = add nsw i32 %0, 1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
11 ret i32 %2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
12 }