about summary refs log tree commit diff homepage
path: root/test/Concrete/UnconditionalBranchWithSimplePhi.ll
blob: 551ddf5da54b58aabd51f9a7db344fc710268117 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
declare void @print_i32(i32)

define i32 @main() {
entry:
	%a = add i32 0, 1
	br label %exit
unused:
	%b = add i32 1, 2
	br label %exit
exit:
	%c = phi i32 [%a, %entry], [%b, %unused]
	call void @print_i32(i32 %c)
	ret i32 0
}