From: "Kewen.Lin" <linkw@linux.ibm.com>
To: Segher Boessenkool <segher@kernel.crashing.org>
Cc: Richard Biener <richard.guenther@gmail.com>,
GCC Patches <gcc-patches@gcc.gnu.org>,
Bill Schmidt <wschmidt@linux.ibm.com>,
Richard Sandiford <richard.sandiford@arm.com>
Subject: Re: [PATCH v2] vect/rs6000: Support vector with length cost modeling
Date: Mon, 27 Jul 2020 11:44:19 +0800 [thread overview]
Message-ID: <1c45f889-23ca-c4dc-88a7-cc7b9aa6990b@linux.ibm.com> (raw)
In-Reply-To: <20200722174931.GB32057@gate.crashing.org>
Hi Segher,
Thanks for the comments!
on 2020/7/23 上午1:49, Segher Boessenkool wrote:
> Hi!
>
> On Wed, Jul 22, 2020 at 09:26:39AM +0800, Kewen.Lin wrote:
>> +/* For some target specific vectorization cost which can't be handled per stmt,
>> + we check the requisite conditions and adjust the vectorization cost
>> + accordingly if satisfied. One typical example is to model shift cost for
>> + vector with length by counting number of required lengths under condition
>> + LOOP_VINFO_FULLY_WITH_LENGTH_P. */
>> +
>> +static void
>> +adjust_vect_cost (rs6000_cost_data *data)
>> +{
>
> Maybe call it rs6000_adjust_vect_cost? For consistency, but also it
> could (in the future) collide with a globalfunction of the same name (it
> is a very non-specific name).
Done in v4, used rs6000_adjust_vect_cost_per_loop.
>
>> + /* Each length needs one shift to fill into bits 0-7. */
>> + shift_cnt += (num_vectors_m1 + 1);
>
> That doesn't need parentheses.
Done in v4.
>
>> if (cost_data->loop_info)
>> - rs6000_density_test (cost_data);
>> + {
>> + adjust_vect_cost (cost_data);
>> + rs6000_density_test (cost_data);
>> + }
>
> ^^^ consistency :-)
>
> The rs6000 parts are fine for trunk, thanks!
Thanks!
BR,
Kewen
prev parent reply other threads:[~2020-07-27 3:44 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-21 5:51 [PATCH] vect: " Kewen.Lin
2020-07-21 7:57 ` Richard Biener
2020-07-22 1:26 ` [PATCH v2] vect/rs6000: " Kewen.Lin
2020-07-22 6:38 ` Richard Biener
2020-07-22 7:08 ` Kewen.Lin
2020-07-22 9:11 ` Richard Sandiford
2020-07-22 15:48 ` [PATCH v3] " Kewen.Lin
2020-07-22 16:25 ` Kewen.Lin
2020-07-24 16:21 ` Richard Sandiford
2020-07-27 3:58 ` [PATCH v4] " Kewen.Lin
2020-07-27 13:40 ` Richard Sandiford
2020-07-28 8:36 ` Kewen.Lin
2020-07-31 11:03 ` Richard Sandiford
2020-07-31 11:20 ` Richard Biener
2020-07-31 12:37 ` Kewen.Lin
2020-07-31 13:01 ` Richard Biener
2020-07-31 13:21 ` Kewen.Lin
2020-07-31 14:51 ` [PATCH v5] " Kewen.Lin
2020-08-05 7:27 ` Richard Sandiford
2020-08-05 14:06 ` Segher Boessenkool
2020-08-06 6:47 ` Kewen.Lin
2020-07-22 17:49 ` [PATCH v2] " Segher Boessenkool
2020-07-27 3:44 ` Kewen.Lin [this message]
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=1c45f889-23ca-c4dc-88a7-cc7b9aa6990b@linux.ibm.com \
--to=linkw@linux.ibm.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=richard.guenther@gmail.com \
--cc=richard.sandiford@arm.com \
--cc=segher@kernel.crashing.org \
--cc=wschmidt@linux.ibm.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).