mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-07 03:40:35 +00:00
new testcase
llvm-svn: 33233
This commit is contained in:
parent
d4a0c800f4
commit
1140c5c398
@ -1,6 +1,7 @@
|
||||
; This test makes sure that these instructions are properly eliminated.
|
||||
;
|
||||
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep phi
|
||||
|
||||
implementation
|
||||
@ -65,3 +66,14 @@ BB2:
|
||||
ret uint %B
|
||||
}
|
||||
|
||||
int %test7(int %A, bool %b) {
|
||||
BB0: br label %Loop
|
||||
|
||||
Loop:
|
||||
%B = phi int [%A, %BB0], [%C, %Loop] ; PHI is dead.
|
||||
%C = add int %B, 123
|
||||
br bool %b, label %Loop, label %Exit
|
||||
Exit:
|
||||
ret int 0
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user