You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A lot of if (y == x) statements output by mips2c need to be rewritten to if (x == y) to match.
This seems to be related to simplify_expression() and when (y == x) != 0 is re-written to y == x, but it needs more investigation to figure out how to make the matches better:
Does it affect both integer & floats?
Is it just equality, or also ordering comparisons? (Is there a certain set of instructions?)
Can this be used to replace the 123 == x --> x == 123 reordering that's based on isinstance(..., Literal)?
Is it consistent across both GCC & IDO?
The text was updated successfully, but these errors were encountered:
Brought up by Maide on Discord.
A lot of
if (y == x)
statements output by mips2c need to be rewritten toif (x == y)
to match.This seems to be related to
simplify_expression()
and when(y == x) != 0
is re-written toy == x
, but it needs more investigation to figure out how to make the matches better:123 == x
-->x == 123
reordering that's based onisinstance(..., Literal)
?The text was updated successfully, but these errors were encountered: