mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-08 19:46:39 +00:00
New testcase that LICM is breaking crafty on
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10408 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1ca2a583cb
commit
0ac4d9247b
20
test/Transforms/LICM/2003-12-11-SinkingToPHI.ll
Normal file
20
test/Transforms/LICM/2003-12-11-SinkingToPHI.ll
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
; RUN: llvm-as < %s | opt -licm | lli
|
||||||
|
|
||||||
|
implementation ; Functions:
|
||||||
|
|
||||||
|
int %main() {
|
||||||
|
entry:
|
||||||
|
br label %Loop
|
||||||
|
|
||||||
|
Loop:
|
||||||
|
br bool true, label %LoopCont, label %Out
|
||||||
|
LoopCont:
|
||||||
|
%X = add int 1, 0
|
||||||
|
br bool true, label %Out, label %Loop
|
||||||
|
|
||||||
|
Out:
|
||||||
|
%V = phi int [ 2, %Loop], [ %X, %LoopCont]
|
||||||
|
%V2 = sub int %V, 1
|
||||||
|
ret int %V2
|
||||||
|
}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user