summary refs log tree commit diff stats
path: root/net/queue.c
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2012-09-06 16:47:14 +0200
committerAurelien Jarno <aurelien@aurel32.net>2012-09-11 18:05:59 +0200
commit65a7cce17ddf6fa1a30d4315da1631d9b6c8fd31 (patch)
tree3256ee3596c8d224aaa70e9616a0bb7e9f570164 /net/queue.c
parent01ee5282ea955dee4e189b34ef888be6f36d9861 (diff)
downloadfocaccia-qemu-65a7cce17ddf6fa1a30d4315da1631d9b6c8fd31.tar.gz
focaccia-qemu-65a7cce17ddf6fa1a30d4315da1631d9b6c8fd31.zip
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>
Diffstat (limited to 'net/queue.c')
0 files changed, 0 insertions, 0 deletions