From: Robin Dapp <rdapp.gcc@gmail.com>
To: "juzhe.zhong@rivai.ai" <juzhe.zhong@rivai.ai>,
gcc-patches <gcc-patches@gcc.gnu.org>
Cc: rdapp.gcc@gmail.com, "kito.cheng" <kito.cheng@gmail.com>,
"Kito.cheng" <kito.cheng@sifive.com>,
jeffreyalaw <jeffreyalaw@gmail.com>
Subject: Re: [PATCH] RISC-V: Fix vmerge optimization bug in vec_perm vectorization
Date: Fri, 15 Dec 2023 13:25:33 +0100 [thread overview]
Message-ID: <50e3e3d0-3af6-4e7b-a8cf-a16a7cbef077@gmail.com> (raw)
In-Reply-To: <5F78E561522A59F4+2023121520165641829969@rivai.ai>
On 12/15/23 13:16, juzhe.zhong@rivai.ai wrote:
>
>>> bool indices_fit_selector = maybe_ge (vec_len, 2 << GET_MODE_BITSIZE (GET_MODE_INNER (vmode)));
> No, I think it will make us miss some optimization.
>
> For example, for poly value [16,16] maybe_ge ([16,16], 65536) which makes us missed merge optimization but
> we definitely can do merge optimization.
I didn't mean to skip the && !vec_len.is_constant (), that should
stay. Just the first part of condition that can be re-used in the
if as well (inverted).
Regards
Robin
next prev parent reply other threads:[~2023-12-15 12:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-15 2:57 Juzhe-Zhong
2023-12-15 11:14 ` Robin Dapp
2023-12-15 12:16 ` juzhe.zhong
2023-12-15 12:25 ` Robin Dapp [this message]
2023-12-15 12:28 ` juzhe.zhong
2023-12-15 12:32 ` juzhe.zhong
2023-12-15 12:44 ` Robin Dapp
2023-12-15 12:52 ` juzhe.zhong
2023-12-15 12:54 ` Robin Dapp
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=50e3e3d0-3af6-4e7b-a8cf-a16a7cbef077@gmail.com \
--to=rdapp.gcc@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=jeffreyalaw@gmail.com \
--cc=juzhe.zhong@rivai.ai \
--cc=kito.cheng@gmail.com \
--cc=kito.cheng@sifive.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).