public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Andre Vieira (lists)" <andre.simoesdiasvieira@arm.com>
To: Richard Biener <rguenther@suse.de>
Cc: "Andre Vieira (lists) via Gcc-patches" <gcc-patches@gcc.gnu.org>,
	richard.sandiford@arm.com
Subject: Re: [AArch64] Enable generation of FRINTNZ instructions
Date: Wed, 9 Nov 2022 11:33:26 +0000	[thread overview]
Message-ID: <6a1c88e9-d55a-2b81-3c5b-2716ec06e110@arm.com> (raw)
In-Reply-To: <nycvar.YFH.7.77.849.2211071454270.4294@jbgna.fhfr.qr>


On 07/11/2022 14:56, Richard Biener wrote:
> On Mon, 7 Nov 2022, Andre Vieira (lists) wrote:
>
>> On 07/11/2022 11:05, Richard Biener wrote:
>>> On Fri, 4 Nov 2022, Andre Vieira (lists) wrote:
>>>
>>>> Sorry for the delay, just been reminded I still had this patch outstanding
>>>> from last stage 1. Hopefully since it has been mostly reviewed it could go
>>>> in
>>>> for this stage 1?
>>>>
>>>> I addressed the comments and gave the slp-part of vectorizable_call some
>>>> TLC
>>>> to make it work.
>>>>
>>>> I also changed vect_get_slp_defs as I noticed that the call from
>>>> vectorizable_call was creating an auto_vec with 'nargs' that might be less
>>>> than the number of children in the slp_node
>>> how so?  Please fix that in the caller.  It looks like it probably
>>> shoud use vect_nargs instead?
>> Well that was my first intuition, but when I looked at it further the variant
>> it's calling:
>> void vect_get_slp_defs (vec_info *, slp_tree slp_node, vec<vec<tree> >
>> *vec_oprnds, unsigned n)
>>
>> Is actually creating a vector of vectors of slp defs. So for each child of
>> slp_node it calls:
>> void vect_get_slp_defs (slp_tree slp_node, vec<tree> *vec_defs)
>>
>> Which returns a vector of vectorized defs. So vect_nargs would be the right
>> size for the inner vec<tree> of vec_defs, but the outer should have the same
>> number of elements as the original slp_node has children.
> No, the inner vector is the vector of vectors for each arg, the outer
> vector should be the one for each argument.  Hm, that was a confusing
> sentence.
>
> That said, the number of SLP children of a call node should eventually
> be the number of arguments of the call (plus masks, etc.).  So it
> looks about correct besides the vec_nargs issue?
Yeah you are right, I misunderstood what the children were, so you have 
a child node for each argument of the call. Though, since you iterate 
over the 'scalar' arguments of the call I actually think 'nargs' was 
correct to begin with, which would explain why this never went wrong... 
So I think it is actually correct as is, I must have gotten confused by 
some earlier investigation into how to deal with the scalar arguments... 
Sorry for the noise, I'll undo these changes to the patch.

  reply	other threads:[~2022-11-09 11:33 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-11 17:51 Andre Vieira (lists)
2021-11-12 10:56 ` Richard Biener
2021-11-12 11:48   ` Andre Simoes Dias Vieira
2021-11-16 12:10     ` Richard Biener
2021-11-17 13:30       ` Andre Vieira (lists)
2021-11-17 15:38         ` Richard Sandiford
2021-11-18 11:05         ` Richard Biener
2021-11-22 11:38           ` Andre Vieira (lists)
2021-11-22 11:41             ` Richard Biener
2021-11-25 13:53               ` Andre Vieira (lists)
2021-12-07 11:29                 ` Andre Vieira (lists)
2021-12-17 12:44                 ` Richard Sandiford
2021-12-29 15:55                   ` Andre Vieira (lists)
2021-12-29 16:54                     ` Richard Sandiford
2022-01-03 12:18                     ` Richard Biener
2022-01-10 14:09                       ` Andre Vieira (lists)
2022-01-10 14:45                         ` Richard Biener
2022-01-14 10:37                         ` Richard Sandiford
2022-11-04 17:40                           ` Andre Vieira (lists)
2022-11-07 11:05                             ` Richard Biener
2022-11-07 14:19                               ` Andre Vieira (lists)
2022-11-07 14:56                                 ` Richard Biener
2022-11-09 11:33                                   ` Andre Vieira (lists) [this message]
2022-11-15 18:24                                 ` Richard Sandiford
2022-11-16 12:25                                   ` Richard Biener
2021-11-29 11:17           ` Andre Vieira (lists)

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=6a1c88e9-d55a-2b81-3c5b-2716ec06e110@arm.com \
    --to=andre.simoesdiasvieira@arm.com \
    --cc=gcc-patches@gcc.gnu.org \
    --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).