commit | 3c94193e0bbdd855bcbedabd27e3cbe1e6bc6242 | [log] [tgz] |
---|---|---|
author | Aurelien Jarno <aurelien@aurel32.net> | Tue Sep 18 19:12:36 2012 +0200 |
committer | Aurelien Jarno <aurelien@aurel32.net> | Sat Sep 22 15:10:21 2012 +0200 |
tree | 66acc972bc03f5d47de4488f60c5fd786cbd7d27 | |
parent | 0aba1c7376ad325202f328211ab6dfcae94c7f2a [diff] |
tcg/optimize: optimize "op r, a, a => movi r, 0" Now that it's possible to detect copies, we can optimize the case the "op r, a, a => movi r, 0". This helps in the computation of overflow flags when one of the two args is 0. Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>