From: Jeff Law <jeffreyalaw@gmail.com>
To: juzhe.zhong@rivai.ai, gcc-patches@gcc.gnu.org
Cc: rguenther@suse.de, richard.sandiford@arm.com
Subject: Re: [PATCH] GIMPLE_FOLD: Apply LEN_MASK_{LOAD,STORE} into GIMPLE_FOLD
Date: Sat, 24 Jun 2023 08:44:40 -0600 [thread overview]
Message-ID: <e0c0f93b-3702-523b-da3f-4a711007d9c6@gmail.com> (raw)
In-Reply-To: <20230623134827.4093245-1-juzhe.zhong@rivai.ai>
On 6/23/23 07:48, juzhe.zhong@rivai.ai wrote:
> From: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>
>
> Hi, since we are going to have LEN_MASK_{LOAD,STORE} into loopVectorizer.
>
> Currenly,
> 1. we can fold MASK_{LOAD,STORE} into MEM when mask is all ones.
> 2. we can fold LEN_{LOAD,STORE} into MEM when (len - bias) is VF.
>
> Now, I think it makes sense that we can support
>
> fold LEN_MASK_{LOAD,STORE} into MEM when both mask = all ones and (len - bias) is VF.
>
> gcc/ChangeLog:
>
> * gimple-fold.cc (arith_overflowed_p): Apply LEN_MASK_{LOAD,STORE}.
> (gimple_fold_partial_load_store_mem_ref): Ditto.
> (gimple_fold_partial_store): Ditto.
> (gimple_fold_call): Ditto.
OK
jeff
next prev parent reply other threads:[~2023-06-24 14:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-23 13:48 juzhe.zhong
2023-06-24 14:44 ` Jeff Law [this message]
2023-06-25 6:01 ` [PATCH] GIMPLE_FOLD: Apply LEN_MASK_{LOAD, STORE} " 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=e0c0f93b-3702-523b-da3f-4a711007d9c6@gmail.com \
--to=jeffreyalaw@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=juzhe.zhong@rivai.ai \
--cc=rguenther@suse.de \
--cc=richard.sandiford@arm.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).