[PATCH v3 0/7] tcg: Improve extract and deposit code gen

Richard Henderson posted 7 patches 1 month, 1 week ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260303010833.1115741-1-richard.henderson@linaro.org
Maintainers: Richard Henderson <richard.henderson@linaro.org>
tcg/tcg-internal.h |   5 +
tcg/optimize.c     | 266 ++++++++++++++++++++++++++++++++++++++++-----
tcg/tcg-op.c       | 215 ++++++++----------------------------
tcg/tcg.c          |  21 +++-
4 files changed, 309 insertions(+), 198 deletions(-)
[PATCH v3 0/7] tcg: Improve extract and deposit code gen
Posted by Richard Henderson 1 month, 1 week ago
Changes for v3:
  - Drop shl+extract expansion of deposit-into-zero.
    This was origially done for code size on x86, but
    is redundant with the new shl+shr expansion.

Patches without reviews:
  - 1 (new)
  - 7 (simplified)


r~


Paolo Bonzini (2):
  tcg: Add tcg_op_imm_match
  tcg: target-dependent lowering of extract to shr/and

Richard Henderson (5):
  tcg: Drop extract+shl expansions in tcg_gen_deposit_z_*
  tcg/optimize: Lower unsupported deposit during optimize
  tcg/optimize: Lower unsupported extract2 during optimize
  tcg: Expand missing rotri with extract2
  tcg/optimize: possibly expand deposit into zero with shifts

 tcg/tcg-internal.h |   5 +
 tcg/optimize.c     | 266 ++++++++++++++++++++++++++++++++++++++++-----
 tcg/tcg-op.c       | 215 ++++++++----------------------------
 tcg/tcg.c          |  21 +++-
 4 files changed, 309 insertions(+), 198 deletions(-)

-- 
2.43.0
Re: [PATCH v3 0/7] tcg: Improve extract and deposit code gen
Posted by Philippe Mathieu-Daudé 1 month ago
On 3/3/26 02:08, Richard Henderson wrote:

> Paolo Bonzini (2):
>    tcg: Add tcg_op_imm_match
>    tcg: target-dependent lowering of extract to shr/and
> 
> Richard Henderson (5):
>    tcg: Drop extract+shl expansions in tcg_gen_deposit_z_*
>    tcg/optimize: Lower unsupported deposit during optimize
>    tcg/optimize: Lower unsupported extract2 during optimize
>    tcg: Expand missing rotri with extract2
>    tcg/optimize: possibly expand deposit into zero with shifts

Series queued, thanks.