public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jeff Law <law@redhat.com>
To: Ilya Enkovich <enkovich.gnu@gmail.com>,
	       Richard Biener <richard.guenther@gmail.com>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH, vec-tails 01/10] New compiler options
Date: Thu, 16 Jun 2016 05:06:00 -0000	[thread overview]
Message-ID: <7ac2a8d9-0031-cdd0-17d2-7c00284e9e09@redhat.com> (raw)
In-Reply-To: <CAMbmDYZCwaz7EkRcOa4i5xy6Kh4aZw+5oj-MM-2j16x8uX9G5g@mail.gmail.com>

On 05/20/2016 05:40 AM, Ilya Enkovich wrote:
> 2016-05-20 14:17 GMT+03:00 Richard Biener <richard.guenther@gmail.com>:
>> On Fri, May 20, 2016 at 11:50 AM, Ilya Enkovich <enkovich.gnu@gmail.com> wrote:
>>> 2016-05-20 12:26 GMT+03:00 Richard Biener <richard.guenther@gmail.com>:
>>>> On Thu, May 19, 2016 at 9:36 PM, Ilya Enkovich <enkovich.gnu@gmail.com> wrote:
>>>>> Hi,
>>>>>
>>>>> This patch introduces new options used for loop epilogues vectorization.
>>>>
>>>> Why's that?  This is a bit too much for the casual user and if it is
>>>> really necessary
>>>> to control this via options then it is not fine-grained enough.
>>>>
>>>> Why doesn't the vectorizer/backend have enough info to decide this itself?
>>>
>>> I don't expect casual user to decide which modes to choose.  These controls are
>>> added for debugging and performance measurement purposes.  I see now I miss
>>> -ftree-vectorize-epilogues aliased to -ftree-vectorize-epilogues=all.  Surely
>>> I expect epilogues and short loops vectorization be enabled by default on -O3
>>> or by -ftree-vectorize-loops.
>>
>> Can you make all these --params then?  I think to be useful to users we'd want
>> them to be loop pragmas rather than options.
>
> OK, I'll change it to params.  I didn't think about control via
> pragmas but will do now.
So the questions I'd like to see answered:

1. You've got 3 modes for epilogue vectorization.  Is this an artifact 
of not really having good heuristics yet for which mode to apply to a 
particular loop at this time?

2. Similarly for cost models.


In the cover message you indicated you were getting expected gains of 
KNL, but not on Haswell.  Do you have any sense yet why you're not 
getting good resuls on Haswell yet?  For KNL are you getting those 
speedups with a generic set of options or are those with a custom set of 
options to set the mode & cost models?

jeff

  parent reply	other threads:[~2016-06-16  5:06 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-19 19:37 Ilya Enkovich
2016-05-19 20:23 ` Joseph Myers
2016-05-20  9:26 ` Richard Biener
2016-05-20  9:50   ` Ilya Enkovich
2016-05-20 11:17     ` Richard Biener
2016-05-20 11:40       ` Ilya Enkovich
2016-06-09 10:36         ` Ilya Enkovich
2016-06-09 12:19           ` Richard Biener
2016-06-16  5:06         ` Jeff Law [this message]
2016-06-17 10:41           ` Ilya Enkovich
2016-06-20 22:33             ` Jeff Law
2016-06-16 13:45         ` Ilya Enkovich
2016-07-11 13:37           ` Ilya Enkovich

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=7ac2a8d9-0031-cdd0-17d2-7c00284e9e09@redhat.com \
    --to=law@redhat.com \
    --cc=enkovich.gnu@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=richard.guenther@gmail.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).