mbox series

[0/2] tcg: Improve expansion of deposit with constants

Message ID 20231018204606.1545518-1-richard.henderson@linaro.org
Headers show
Series tcg: Improve expansion of deposit with constants | expand

Message

Richard Henderson Oct. 18, 2023, 8:46 p.m. UTC
The introduction of tcg_gen_deposit_z_* pre-dates the introduction
of tcg_constant_*.  These days, a reasonably up-to-date translator
should not need to manually choose between the two deposit functions,
but instead rely on any zero register to supply tcg_constant*(0)
as a source operand.

In addition, the hppa front end has some special cases for insertion
of a constant (depiw instruction), as opposed to the current insertion
into a constant.


r~


Richard Henderson (2):
  tcg: Improve expansion of deposit of constant
  tcg: Improve expansion of deposit into a constant

 tcg/tcg-op.c | 323 ++++++++++++++++++++++++++++++++-------------------
 1 file changed, 202 insertions(+), 121 deletions(-)