blob: 94d632f8f8383955b523da6685e1412472fd2436 [file] [log] [blame]
Chris Lattnerd7490bc2002-09-24 16:02:44 +00001; RUN: as < %s | opt -simplifycfg
2
3int %test(int %A, int %B, bool %cond) {
4J:
5 %C = add int %A, 12
6 br bool %cond, label %L, label %L
7L:
8 %Q = phi int [%C, %J], [%C, %J] ; PHI node is obviously redundant
9 %D = add int %C, %B
10 %E = add int %Q, %D
11 ret int %E
12}