aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/SimplifyCFG/basictest.ll
blob: 18fa8978ca12fd764a011567b7616fdc76b7acf3 (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-upgrade < %s | llvm-as | 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
}