mirror of
git://c9x.me/qbe.git
synced 2026-04-06 18:39:48 +00:00
swap a test in collatz
This is pretty stupid... Since we rely on rpo only for code output (and not a proper scheduler), I have to be careful with the ordering of tests to get cleaner code.
This commit is contained in:
parent
c334258427
commit
0d5b5cefcb
@ -15,8 +15,8 @@
|
|||||||
@cloop
|
@cloop
|
||||||
%n0 =w phi @loop %n, @odd %n2, @even %n3
|
%n0 =w phi @loop %n, @odd %n2, @even %n3
|
||||||
%c0 =w phi @loop 0, @odd %c1, @even %c1
|
%c0 =w phi @loop 0, @odd %c1, @even %c1
|
||||||
%is1 =w ceq %n0, 1
|
%no1 =w cne %n0, 1
|
||||||
jnz %is1, @endcl, @iter0
|
jnz %no1, @iter0, @endcl
|
||||||
@iter0
|
@iter0
|
||||||
%ism =w cslt %n0, %n
|
%ism =w cslt %n0, %n
|
||||||
jnz %ism, @getmemo, @iter1
|
jnz %ism, @getmemo, @iter1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user