public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jeff Law <jeffreyalaw@gmail.com>
To: juzhe.zhong@rivai.ai, gcc-patches@gcc.gnu.org
Cc: kito.cheng@gmail.com, kito.cheng@sifive.com, palmer@dabbelt.com,
	palmer@rivosinc.com, rdapp.gcc@gmail.com
Subject: Re: [PATCH V2] RISC-V: Support RVV permutation auto-vectorization
Date: Thu, 1 Jun 2023 12:48:37 -0600	[thread overview]
Message-ID: <b79ec934-540f-6ca8-d13f-e854a1632afa@gmail.com> (raw)
In-Reply-To: <20230601023615.89715-1-juzhe.zhong@rivai.ai>



On 5/31/23 20:36, juzhe.zhong@rivai.ai wrote:
> From: Juzhe-Zhong <juzhe.zhong@rivai.ai>
> 
> This patch supports vector permutation for VLS only by vec_perm pattern.
> We will support TARGET_VECTORIZE_VEC_PERM_CONST to support VLA permutation
> in the future.
> 
> Fixed following comments from Robin.
> Ok for trunk?
> 
> gcc/ChangeLog:
> 
>          * config/riscv/autovec.md (vec_perm<mode>): New pattern.
>          * config/riscv/predicates.md (vector_perm_operand): New predicate.
>          * config/riscv/riscv-protos.h (enum insn_type): New enum.
>          (expand_vec_perm): New function.
>          * config/riscv/riscv-v.cc (const_vec_all_in_range_p): Ditto.
>          (gen_const_vector_dup): Ditto.
>          (emit_vlmax_gather_insn): Ditto.
>          (emit_vlmax_masked_gather_mu_insn): Ditto.
>          (expand_vec_perm): Ditto.
OK.
jeff

  reply	other threads:[~2023-06-01 18:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-01  2:36 juzhe.zhong
2023-06-01 18:48 ` Jeff Law [this message]
2023-06-02  1:03   ` Li, Pan2

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b79ec934-540f-6ca8-d13f-e854a1632afa@gmail.com \
    --to=jeffreyalaw@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=juzhe.zhong@rivai.ai \
    --cc=kito.cheng@gmail.com \
    --cc=kito.cheng@sifive.com \
    --cc=palmer@dabbelt.com \
    --cc=palmer@rivosinc.com \
    --cc=rdapp.gcc@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).