blob: f1674b7ffb59bf6c755757d66307d5b73531a229 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
; RUN: llvm-upgrade < %s | llvm-as | 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
}
|