summaryrefslogtreecommitdiffstats
path: root/test/Transforms/SCCP/2004-11-16-DeadInvoke.ll
blob: 5d2c78ef874c0a5f52ff9fcf750645418bdbfc21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: opt < %s -sccp -disable-output

declare i32 @foo()

define void @caller() {
	br i1 true, label %T, label %F
F:		; preds = %0
	%X = invoke i32 @foo( )
			to label %T unwind label %T		; <i32> [#uses=0]
T:		; preds = %F, %F, %0
	ret void
}

OpenPOWER on IntegriCloud