mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 15:32:52 +01:00
563ba88392
llvm-svn: 8558
13 lines
266 B
LLVM
13 lines
266 B
LLVM
; RUN: llvm-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
|
|
}
|