aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/SimplifyCFG/basictest.ll
blob: 9dac7c05ab61ce65e536917c2395c69ddbd5e9e3 (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
; Test CFG simplify removal of branch instructions...
;
; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | not grep br


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
}