aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/SimplifyCFG/basictest.ll
blob: c86d9398f5a6b820633056611ceedce300c81e90 (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 -simplifycfg | 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
}