mbox series

[0/3] target: Use tcg_constant_tl() instead of tcg_gen_movi_tl()

Message ID 20241004202621.4321-1-philmd@linaro.org
Headers show
Series target: Use tcg_constant_tl() instead of tcg_gen_movi_tl() | expand

Message

Philippe Mathieu-Daudé Oct. 4, 2024, 8:26 p.m. UTC
Directly use tcg_constant_tl() for constant integer, this
save a call to tcg_gen_movi_tl(), often saving a temp register.

(Only build-tested)

Philippe Mathieu-Daudé (3):
  target/mips: Use tcg_constant_tl() instead of tcg_gen_movi_tl()
  target/tricore: Use tcg_constant_tl() instead of tcg_gen_movi_tl()
  target/ppc: Use tcg_constant_tl() instead of tcg_gen_movi_tl()

 target/mips/tcg/translate.c               |  56 ++++-------
 target/ppc/translate.c                    |  13 +--
 target/tricore/translate.c                |   3 +-
 target/mips/tcg/micromips_translate.c.inc |  12 +--
 target/mips/tcg/mips16e_translate.c.inc   |  15 +--
 target/mips/tcg/nanomips_translate.c.inc  | 114 ++++++++--------------
 6 files changed, 74 insertions(+), 139 deletions(-)

Comments

Philippe Mathieu-Daudé Oct. 15, 2024, 2:53 p.m. UTC | #1
On 4/10/24 17:26, Philippe Mathieu-Daudé wrote:

> Philippe Mathieu-Daudé (3):
>    target/mips: Use tcg_constant_tl() instead of tcg_gen_movi_tl()
>    target/tricore: Use tcg_constant_tl() instead of tcg_gen_movi_tl()
>    target/ppc: Use tcg_constant_tl() instead of tcg_gen_movi_tl()

Series queued, thanks.