* [PATCH] SSA ALIAS: Apply LEN_MASK_{LOAD,STORE} into SSA alias analysis
@ 2023-06-23 13:56 juzhe.zhong
2023-06-23 19:20 ` [PATCH] SSA ALIAS: Apply LEN_MASK_{LOAD, STORE} " Jeff Law
0 siblings, 1 reply; 5+ messages in thread
From: juzhe.zhong @ 2023-06-23 13:56 UTC (permalink / raw)
To: gcc-patches; +Cc: rguenther, richard.sandiford, Ju-Zhe Zhong
From: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>
gcc/ChangeLog:
* tree-ssa-alias.cc (ref_maybe_used_by_call_p_1): Apply LEN_MASK_{LOAD,STORE}
---
gcc/tree-ssa-alias.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/tree-ssa-alias.cc b/gcc/tree-ssa-alias.cc
index e1bc04b82ba..92dc1bb9987 100644
--- a/gcc/tree-ssa-alias.cc
+++ b/gcc/tree-ssa-alias.cc
@@ -2815,11 +2815,13 @@ ref_maybe_used_by_call_p_1 (gcall *call, ao_ref *ref, bool tbaa_p)
case IFN_SCATTER_STORE:
case IFN_MASK_SCATTER_STORE:
case IFN_LEN_STORE:
+ case IFN_LEN_MASK_STORE:
return false;
case IFN_MASK_STORE_LANES:
goto process_args;
case IFN_MASK_LOAD:
case IFN_LEN_LOAD:
+ case IFN_LEN_MASK_LOAD:
case IFN_MASK_LOAD_LANES:
{
ao_ref rhs_ref;
--
2.36.3
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] SSA ALIAS: Apply LEN_MASK_{LOAD, STORE} into SSA alias analysis
2023-06-23 13:56 [PATCH] SSA ALIAS: Apply LEN_MASK_{LOAD,STORE} into SSA alias analysis juzhe.zhong
@ 2023-06-23 19:20 ` Jeff Law
2023-06-23 23:21 ` 钟居哲
0 siblings, 1 reply; 5+ messages in thread
From: Jeff Law @ 2023-06-23 19:20 UTC (permalink / raw)
To: juzhe.zhong, gcc-patches; +Cc: rguenther, richard.sandiford
On 6/23/23 07:56, juzhe.zhong@rivai.ai wrote:
> From: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>
>
> gcc/ChangeLog:
>
> * tree-ssa-alias.cc (ref_maybe_used_by_call_p_1): Apply LEN_MASK_{LOAD,STORE}
>
> ---
> gcc/tree-ssa-alias.cc | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/gcc/tree-ssa-alias.cc b/gcc/tree-ssa-alias.cc
> index e1bc04b82ba..92dc1bb9987 100644
> --- a/gcc/tree-ssa-alias.cc
> +++ b/gcc/tree-ssa-alias.cc
> @@ -2815,11 +2815,13 @@ ref_maybe_used_by_call_p_1 (gcall *call, ao_ref *ref, bool tbaa_p)
> case IFN_SCATTER_STORE:
> case IFN_MASK_SCATTER_STORE:
> case IFN_LEN_STORE:
> + case IFN_LEN_MASK_STORE:
> return false;
> case IFN_MASK_STORE_LANES:
> goto process_args;
> case IFN_MASK_LOAD:
> case IFN_LEN_LOAD:
> + case IFN_LEN_MASK_LOAD:
> case IFN_MASK_LOAD_LANES:
> {
> ao_ref rhs_ref;
Don't you need to adjust how you compute the size for the LEN_MASK_LOAD
case?
jeff
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Re: [PATCH] SSA ALIAS: Apply LEN_MASK_{LOAD, STORE} into SSA alias analysis
2023-06-23 19:20 ` [PATCH] SSA ALIAS: Apply LEN_MASK_{LOAD, STORE} " Jeff Law
@ 2023-06-23 23:21 ` 钟居哲
2023-06-24 14:08 ` Jeff Law
0 siblings, 1 reply; 5+ messages in thread
From: 钟居哲 @ 2023-06-23 23:21 UTC (permalink / raw)
To: Jeff Law, gcc-patches; +Cc: rguenther, richard.sandiford
[-- Attachment #1: Type: text/plain, Size: 1321 bytes --]
Not sure since I saw MASK_STORE/LEN_STORE didn't compute size.
juzhe.zhong@rivai.ai
From: Jeff Law
Date: 2023-06-24 03:20
To: juzhe.zhong; gcc-patches
CC: rguenther; richard.sandiford
Subject: Re: [PATCH] SSA ALIAS: Apply LEN_MASK_{LOAD, STORE} into SSA alias analysis
On 6/23/23 07:56, juzhe.zhong@rivai.ai wrote:
> From: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>
>
> gcc/ChangeLog:
>
> * tree-ssa-alias.cc (ref_maybe_used_by_call_p_1): Apply LEN_MASK_{LOAD,STORE}
>
> ---
> gcc/tree-ssa-alias.cc | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/gcc/tree-ssa-alias.cc b/gcc/tree-ssa-alias.cc
> index e1bc04b82ba..92dc1bb9987 100644
> --- a/gcc/tree-ssa-alias.cc
> +++ b/gcc/tree-ssa-alias.cc
> @@ -2815,11 +2815,13 @@ ref_maybe_used_by_call_p_1 (gcall *call, ao_ref *ref, bool tbaa_p)
> case IFN_SCATTER_STORE:
> case IFN_MASK_SCATTER_STORE:
> case IFN_LEN_STORE:
> + case IFN_LEN_MASK_STORE:
> return false;
> case IFN_MASK_STORE_LANES:
> goto process_args;
> case IFN_MASK_LOAD:
> case IFN_LEN_LOAD:
> + case IFN_LEN_MASK_LOAD:
> case IFN_MASK_LOAD_LANES:
> {
> ao_ref rhs_ref;
Don't you need to adjust how you compute the size for the LEN_MASK_LOAD
case?
jeff
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] SSA ALIAS: Apply LEN_MASK_{LOAD, STORE} into SSA alias analysis
2023-06-23 23:21 ` 钟居哲
@ 2023-06-24 14:08 ` Jeff Law
2023-06-25 1:32 ` Li, Pan2
0 siblings, 1 reply; 5+ messages in thread
From: Jeff Law @ 2023-06-24 14:08 UTC (permalink / raw)
To: 钟居哲, gcc-patches; +Cc: rguenther, richard.sandiford
On 6/23/23 17:21, 钟居哲 wrote:
> Not sure since I saw MASK_STORE/LEN_STORE didn't compute size.
Yea, I think you're right. We take the size from the LHS. My mistake.
This is fine for the trunk.
jeff
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH] SSA ALIAS: Apply LEN_MASK_{LOAD, STORE} into SSA alias analysis
2023-06-24 14:08 ` Jeff Law
@ 2023-06-25 1:32 ` Li, Pan2
0 siblings, 0 replies; 5+ messages in thread
From: Li, Pan2 @ 2023-06-25 1:32 UTC (permalink / raw)
To: Jeff Law, 钟居哲, gcc-patches
Cc: rguenther, richard.sandiford
Committed, thanks Jeff.
Pan
-----Original Message-----
From: Gcc-patches <gcc-patches-bounces+pan2.li=intel.com@gcc.gnu.org> On Behalf Of Jeff Law via Gcc-patches
Sent: Saturday, June 24, 2023 10:09 PM
To: 钟居哲 <juzhe.zhong@rivai.ai>; gcc-patches <gcc-patches@gcc.gnu.org>
Cc: rguenther <rguenther@suse.de>; richard.sandiford <richard.sandiford@arm.com>
Subject: Re: [PATCH] SSA ALIAS: Apply LEN_MASK_{LOAD, STORE} into SSA alias analysis
On 6/23/23 17:21, 钟居哲 wrote:
> Not sure since I saw MASK_STORE/LEN_STORE didn't compute size.
Yea, I think you're right. We take the size from the LHS. My mistake.
This is fine for the trunk.
jeff
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-06-25 1:32 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-23 13:56 [PATCH] SSA ALIAS: Apply LEN_MASK_{LOAD,STORE} into SSA alias analysis juzhe.zhong
2023-06-23 19:20 ` [PATCH] SSA ALIAS: Apply LEN_MASK_{LOAD, STORE} " Jeff Law
2023-06-23 23:21 ` 钟居哲
2023-06-24 14:08 ` Jeff Law
2023-06-25 1:32 ` Li, Pan2
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).