« Previous | Next » 

Revision 65a7cce1

ID65a7cce17ddf6fa1a30d4315da1631d9b6c8fd31

Added by Aurelien Jarno over 11 years ago

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 <>
Signed-off-by: Aurelien Jarno <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences