aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/PredicateSimplifier/predsimplify.reg3.ll
blob: 190cc900689e0830af04f90495645865bf61c412 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
; RUN: llvm-as < %s | opt -predsimplify -simplifycfg | llvm-dis | grep pass

define void @regtest(i32 %x) {
entry:
	%A = icmp eq i32 %x, 0		; <i1> [#uses=1]
	br i1 %A, label %middle, label %after
middle:		; preds = %entry
	br label %after
after:		; preds = %middle, %entry
	%B = icmp eq i32 %x, 0		; <i1> [#uses=1]
	br i1 %B, label %then, label %else
then:		; preds = %after
	br label %end
else:		; preds = %after
	call void (...)* @pass( )
	br label %end
end:		; preds = %else, %then
	ret void
}

declare void @pass(...)