mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
New testcase, check that dead code doesn't pessimize instcombine
llvm-svn: 28214
This commit is contained in:
parent
085cfba0ca
commit
f99a429a12
12
test/Regression/Transforms/InstCombine/deadcode.ll
Normal file
12
test/Regression/Transforms/InstCombine/deadcode.ll
Normal 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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user