mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-15 07:39:31 +00:00
Finally I'm able to distill a testcase for a problem I'm seeing!
llvm-svn: 4063
This commit is contained in:
parent
3a13076188
commit
21aba702ee
@ -0,0 +1,24 @@
|
|||||||
|
|
||||||
|
|
||||||
|
implementation
|
||||||
|
|
||||||
|
int %test(int %A, int %B, bool %c0) {
|
||||||
|
Start:
|
||||||
|
%c1 = seteq int %A, %B
|
||||||
|
br bool %c1, label %Eq, label %Loop
|
||||||
|
|
||||||
|
Eq: ; In this block we know that A == B
|
||||||
|
br label %Loop ; This should be modified to branch to "Forwarded".
|
||||||
|
|
||||||
|
Loop: ;; Merge point, nothing is known here...
|
||||||
|
%Z = phi int [%A, %Start], [%B, %Eq], [%Z, %Bottom]
|
||||||
|
%c2 = setgt int %A, %B
|
||||||
|
br bool %c2, label %Forwarded, label %Bottom
|
||||||
|
|
||||||
|
Forwarded:
|
||||||
|
call int %test(int 0, int %Z, bool true)
|
||||||
|
br label %Bottom
|
||||||
|
|
||||||
|
Bottom:
|
||||||
|
br label %Loop
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user