mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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:
parent
3e6a35076e
commit
99266d81a2
12
test/Transforms/InstCombine/deadcode.ll
Normal file
12
test/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…
Reference in New Issue
Block a user