1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00

New testcase, check that dead code doesn't pessimize instcombine

llvm-svn: 28214
This commit is contained in:
Chris Lattner 2006-05-10 18:56:04 +00:00
parent 085cfba0ca
commit f99a429a12

View File

@ -0,0 +1,12 @@
; 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
}