public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Luis Machado <luis.machado@linaro.org>
To: Kyrill Tkachov <kyrylo.tkachov@foss.arm.com>, gcc-patches@gcc.gnu.org
Cc: james.greenhalgh@arm.com, Richard.Earnshaw@arm.com,
	"H.J. Lu" <hjl.tools@gmail.com>, Jeff Law <law@redhat.com>
Subject: Re: [PATCH 1/2] Introduce prefetch-minimum stride option
Date: Wed, 16 May 2018 11:53:00 -0000	[thread overview]
Message-ID: <41528915-fb50-7c59-f476-f5c085621bc8@linaro.org> (raw)
In-Reply-To: <5AFBF522.5040805@foss.arm.com>



On 05/16/2018 06:08 AM, Kyrill Tkachov wrote:
> 
> On 15/05/18 12:12, Luis Machado wrote:
>> Hi,
>>
>> On 05/15/2018 06:37 AM, Kyrill Tkachov wrote:
>>> Hi Luis,
>>>
>>> On 14/05/18 22:18, Luis Machado wrote:
>>>> Hi,
>>>>
>>>> Here's an updated version of the patch (now reverted) that addresses 
>>>> the previous bootstrap problem (signedness and long long/int 
>>>> conversion).
>>>>
>>>> I've checked that it bootstraps properly on both aarch64-linux and 
>>>> x86_64-linux and that tests look sane.
>>>>
>>>> James, would you please give this one a try to see if you can still 
>>>> reproduce PR85682? I couldn't reproduce it in multiple attempts.
>>>>
>>>
>>> The patch doesn't hit the regressions in PR85682 from what I can see.
>>> I have a comment on the patch below.
>>>
>>
>> Great. Thanks for checking Kyrill.
>>
>>> --- a/gcc/tree-ssa-loop-prefetch.c
>>> +++ b/gcc/tree-ssa-loop-prefetch.c
>>> @@ -992,6 +992,23 @@ prune_by_reuse (struct mem_ref_group *groups)
>>>   static bool
>>>   should_issue_prefetch_p (struct mem_ref *ref)
>>>   {
>>> +  /* Some processors may have a hardware prefetcher that may 
>>> conflict with
>>> +     prefetch hints for a range of strides.  Make sure we don't issue
>>> +     prefetches for such cases if the stride is within this particular
>>> +     range.  */
>>> +  if (cst_and_fits_in_hwi (ref->group->step)
>>> +      && abs_hwi (int_cst_value (ref->group->step)) <
>>> +      (HOST_WIDE_INT) PREFETCH_MINIMUM_STRIDE)
>>> +    {
>>>
>>> The '<' should go on the line below together with 
>>> PREFETCH_MINIMUM_STRIDE.
>>
>> I've fixed this locally now.
> 
> Thanks. I haven't followed the patch in detail, are you looking for 
> midend changes approval since the last version?
> Or do you need aarch64 approval?

The changes are not substantial, but midend approval i what i was aiming at.

Also the confirmation that PR85682 is no longer happening.

Luis

  reply	other threads:[~2018-05-16 11:18 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-22 13:46 [PATCH 0/2] Add a couple new options to control loop prefetch pass Luis Machado
2018-01-22 14:01 ` [PATCH 1/2] Introduce prefetch-minimum stride option Luis Machado
2018-01-23  9:46   ` Kyrill Tkachov
2018-01-23 13:23     ` Luis Machado
2018-05-01 18:30   ` Jeff Law
2018-05-07 14:10     ` Luis Machado
2018-05-07 15:15       ` H.J. Lu
2018-05-07 15:51         ` Luis Machado
2018-05-14 21:21   ` Luis Machado
2018-05-15  9:59     ` Kyrill Tkachov
2018-05-15 11:21       ` Luis Machado
2018-05-16  9:22         ` Kyrill Tkachov
2018-05-16 11:53           ` Luis Machado [this message]
2018-05-22 18:56             ` Luis Machado
2018-05-22 21:21               ` Jeff Law
2018-05-23 20:27               ` H.J. Lu
2018-05-23 22:34                 ` Luis Machado
2018-05-23 22:41                   ` H.J. Lu
2018-05-23 22:42                     ` H.J. Lu
2018-05-23 22:45                       ` H.J. Lu
2018-05-23 23:29                         ` Luis Machado
2018-05-24  2:51                           ` Jeff Law
2018-05-24 12:21                             ` Luis Machado
2018-01-22 14:10 ` [PATCH 2/2] Introduce prefetch-dynamic-strides option Luis Machado
2018-01-23  9:53   ` Kyrill Tkachov
2018-01-23 13:32     ` Luis Machado
2018-05-01 18:31   ` Jeff Law
2018-05-07 14:13     ` Luis Machado

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=41528915-fb50-7c59-f476-f5c085621bc8@linaro.org \
    --to=luis.machado@linaro.org \
    --cc=Richard.Earnshaw@arm.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=hjl.tools@gmail.com \
    --cc=james.greenhalgh@arm.com \
    --cc=kyrylo.tkachov@foss.arm.com \
    --cc=law@redhat.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).