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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28214 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-05-10 18:56:04 +00:00
parent 3e6a35076e
commit 99266d81a2

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
}