llvm.org GIT mirror llvm / 5321deb
Add a test that shows that SSI is working correctly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79230 91177308-0d34-0410-b5e6-96231b3b80d8 Nick Lewycky 10 years ago
1 changed file(s) with 22 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | opt -ssi-everything | llvm-dis | FileCheck %s
1
2 declare void @use(i32)
3 declare i32 @create()
4
5 define i32 @foo() {
6 entry:
7 %x = call i32 @create()
8 %y = icmp slt i32 %x, 10
9 br i1 %y, label %T, label %F
10 T:
11 ; CHECK: SSI_sigma
12 call void @use(i32 %x)
13 br label %join
14 F:
15 ; CHECK: SSI_sigma
16 call void @use(i32 %x)
17 br label %join
18 join:
19 ; CHECK: SSI_phi
20 ret i32 %x
21 }