tcg/optimize: fold constant test in tcg_opt_gen_mov
authorAurelien Jarno <aurelien@aurel32.net>
Fri, 5 Jun 2015 09:19:18 +0000 (11:19 +0200)
committerRichard Henderson <rth@twiddle.net>
Tue, 9 Jun 2015 14:00:56 +0000 (07:00 -0700)
commit97a79eb70dd35a24fda87d86196afba5e6f21c5d
treea4b3ff56018f67edc3c5d013e5901f60f17a605e
parent5365718a9afeeabde3784d82a542f8ad909b18cf
tcg/optimize: fold constant test in tcg_opt_gen_mov

Most of the calls to tcg_opt_gen_mov are preceeded by a test to check if
the source temp is a constant. Fold that into the tcg_opt_gen_mov
function.

Cc: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Message-Id: <1433495958-9508-1-git-send-email-aurelien@aurel32.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg/optimize.c