llvm-6502/test/Transforms/InstCombine/deadcode.ll
2006-05-10 18:56:04 +00:00

13 lines
242 B
LLVM

; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep 'ret int %A'
int %test(int %A) {
%X = or bool false, false
br bool %X, label %T, label %C
T:
%B = add int %A, 1
br label %C
C:
%C = phi int [%B, %T], [%A, %0]
ret int %C
}