OSDN Git Service

tcg/optimize: further optimize brcond/movcond/setcond
authorAurelien Jarno <aurelien@aurel32.net>
Tue, 18 Sep 2012 17:37:00 +0000 (19:37 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 22 Sep 2012 13:10:21 +0000 (15:10 +0200)
commitb336ceb6918b8f9eb54dcbb1043521482c7be83b
treee99d58fd8a406664a63e7d887de61f2a8c57ee3d
parent3c94193e0bbdd855bcbedabd27e3cbe1e6bc6242
tcg/optimize: further optimize brcond/movcond/setcond

When both argument of brcond/movcond/setcond are the same or when one
of the two values is a constant equal to zero, it's possible to do
further optimizations.

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