commit | 65a7cce17ddf6fa1a30d4315da1631d9b6c8fd31 | [log] [tgz] |
---|---|---|
author | Aurelien Jarno <aurelien@aurel32.net> | Thu Sep 06 16:47:14 2012 +0200 |
committer | Aurelien Jarno <aurelien@aurel32.net> | Tue Sep 11 18:05:59 2012 +0200 |
tree | 3256ee3596c8d224aaa70e9616a0bb7e9f570164 | |
parent | 01ee5282ea955dee4e189b34ef888be6f36d9861 [diff] |
tcg/optimize: swap brcond/setcond arguments when possible brcond and setcond ops are not commutative, but it's easy to compute the new condition after swapping the arguments. Try to always put the constant argument in second position like for commutative ops, to help backends to generate better code. Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>