public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] SSA ALIAS: Apply LEN_MASK_STORE to 'ref_maybe_used_by_call_p_1'
@ 2023-06-23 14:15 juzhe.zhong
  2023-06-23 16:27 ` Jeff Law
  0 siblings, 1 reply; 4+ messages in thread
From: juzhe.zhong @ 2023-06-23 14:15 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 (call_may_clobber_ref_p_1): Add LEN_MASK_STORE.

---
 gcc/tree-ssa-alias.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/tree-ssa-alias.cc b/gcc/tree-ssa-alias.cc
index 92dc1bb9987..f31fd042c2a 100644
--- a/gcc/tree-ssa-alias.cc
+++ b/gcc/tree-ssa-alias.cc
@@ -3070,6 +3070,7 @@ call_may_clobber_ref_p_1 (gcall *call, ao_ref *ref, bool tbaa_p)
 	return false;
       case IFN_MASK_STORE:
       case IFN_LEN_STORE:
+      case IFN_LEN_MASK_STORE:
       case IFN_MASK_STORE_LANES:
 	{
 	  tree rhs = gimple_call_arg (call,
-- 
2.36.3


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] SSA ALIAS: Apply LEN_MASK_STORE to 'ref_maybe_used_by_call_p_1'
  2023-06-23 14:15 [PATCH] SSA ALIAS: Apply LEN_MASK_STORE to 'ref_maybe_used_by_call_p_1' juzhe.zhong
@ 2023-06-23 16:27 ` Jeff Law
  2023-06-23 23:20   ` 钟居哲
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff Law @ 2023-06-23 16:27 UTC (permalink / raw)
  To: juzhe.zhong, gcc-patches; +Cc: rguenther, richard.sandiford



On 6/23/23 08:15, juzhe.zhong@rivai.ai wrote:
> From: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>
> 
> gcc/ChangeLog:
> 
>          * tree-ssa-alias.cc (call_may_clobber_ref_p_1): Add LEN_MASK_STORE.
Doesn't this need to extract/compute the size argument in a manner 
similar to what DSE does?

Jeff

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Re: [PATCH] SSA ALIAS: Apply LEN_MASK_STORE to 'ref_maybe_used_by_call_p_1'
  2023-06-23 16:27 ` Jeff Law
@ 2023-06-23 23:20   ` 钟居哲
  2023-06-24 14:12     ` Jeff Law
  0 siblings, 1 reply; 4+ messages in thread
From: 钟居哲 @ 2023-06-23 23:20 UTC (permalink / raw)
  To: Jeff Law, gcc-patches; +Cc: rguenther, richard.sandiford

[-- Attachment #1: Type: text/plain, Size: 600 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 00:27
To: juzhe.zhong; gcc-patches
CC: rguenther; richard.sandiford
Subject: Re: [PATCH] SSA ALIAS: Apply LEN_MASK_STORE to 'ref_maybe_used_by_call_p_1'
 
 
On 6/23/23 08:15, juzhe.zhong@rivai.ai wrote:
> From: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>
> 
> gcc/ChangeLog:
> 
>          * tree-ssa-alias.cc (call_may_clobber_ref_p_1): Add LEN_MASK_STORE.
Doesn't this need to extract/compute the size argument in a manner 
similar to what DSE does?
 
Jeff
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] SSA ALIAS: Apply LEN_MASK_STORE to 'ref_maybe_used_by_call_p_1'
  2023-06-23 23:20   ` 钟居哲
@ 2023-06-24 14:12     ` Jeff Law
  0 siblings, 0 replies; 4+ messages in thread
From: Jeff Law @ 2023-06-24 14:12 UTC (permalink / raw)
  To: 钟居哲, gcc-patches; +Cc: rguenther, richard.sandiford



On 6/23/23 17:20, 钟居哲 wrote:
> Not sure since I saw MASK_STORE/LEN_STORE didn't compute size.
Also OK after a re-review on my part.  The code sets the size to -1 
after doing the ao_ref_init_from_ptr_and_size, meaning it's not a known 
size.

jeff


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-06-24 14:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-23 14:15 [PATCH] SSA ALIAS: Apply LEN_MASK_STORE to 'ref_maybe_used_by_call_p_1' juzhe.zhong
2023-06-23 16:27 ` Jeff Law
2023-06-23 23:20   ` 钟居哲
2023-06-24 14:12     ` Jeff Law

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).