aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/TailDup/2003-08-31-UnreachableBlocks.ll
blob: 416a5df8085f54c827f019707f6b12d732913f37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
; RUN: llvm-upgrade < %s | llvm-as | opt -tailduplicate -disable-output

int %foo() {
entry:
	br label %return.i

after_ret.i:
	br label %return.i

return.i:
	%tmp.3 = cast int* null to int
	br label %return.i1

after_ret.i1:
	br label %return.i1

return.i1:
	%tmp.8 = sub int %tmp.3, 0
	ret int 0
}