tcg: Optimize two-address commutative operations
authorRichard Henderson <rth@twiddle.net>
Fri, 21 Sep 2012 17:13:38 +0000 (10:13 -0700)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 21 Sep 2012 17:53:17 +0000 (19:53 +0200)
commit5d8f53630011f93dc774f1b2dc9557c7eac3ad89
treee29018e75d97047230513066afc7d473d8165b2f
parentfa01a2084e5643504b28ebba2d9dbdb73d2f74a4
tcg: Optimize two-address commutative operations

While swapping constants to the second operand, swap
sources matching destinations to the first operand.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
tcg/optimize.c