aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/SimplifyCFG/2002-09-24-PHIAssertion.ll
blob: 94d632f8f8383955b523da6685e1412472fd2436 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: as < %s | opt -simplifycfg

int %test(int %A, int %B, bool %cond) {
J:
	%C = add int %A, 12
	br bool %cond, label %L, label %L
L:
	%Q = phi int [%C, %J], [%C, %J]  ; PHI node is obviously redundant
	%D = add int %C, %B
	%E = add int %Q, %D
	ret int %E
}