aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/SimplifyCFG/basictest.ll
blob: a63abf751fa84be3e1b0aa5caa8be04a2c992103 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
; Test CFG simplify removal of branch instructions...
;
; RUN: if as < %s | opt -dce | dis | grep br
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi


void "test1"() {
	br label %BB1
BB1:
	ret void
}

void "test2"() {
	ret void
BB1:
	ret void
}

void "test3"(bool %T) {
	br bool %T, label %BB1, label %BB1
BB1:
	ret void
}