public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Shalnov, Sergey" <sergey.shalnov@intel.com>
To: Uros Bizjak <ubizjak@gmail.com>
Cc: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>,
	"kirill.yukhin@gmail.com" <kirill.yukhin@gmail.com>,
	"Koval, Julia"	<julia.koval@intel.com>,
	"Senkevich, Andrew" <andrew.senkevich@intel.com>,
	"Peryt, Sebastian" <sebastian.peryt@intel.com>,
	"Ivchenko, Alexander"	<alexander.ivchenko@intel.com>,
	Joseph Myers <joseph@codesourcery.com>
Subject: RE: [PATCH, i386] Refactor -mprefer-avx[128|256] options into common -mprefer-vector-width=[none|128|256|512]
Date: Tue, 21 Nov 2017 17:29:00 -0000	[thread overview]
Message-ID: <71475DE127B5E94A8E189586234C088822AE597B@irsmsx105.ger.corp.intel.com> (raw)
In-Reply-To: <CAFULd4bT2UAVxak8ZXxsFhdnRHMaAGFcgA-qLjsLcG9N07Mu6A@mail.gmail.com>

Uros,
Yes, please. Thank you for your proposals and comments.
Please commit as you proposed.
Sergey

-----Original Message-----
From: Uros Bizjak [mailto:ubizjak@gmail.com] 
Sent: Tuesday, November 21, 2017 6:13 PM
To: Shalnov, Sergey <sergey.shalnov@intel.com>
Cc: gcc-patches@gcc.gnu.org; kirill.yukhin@gmail.com; Koval, Julia <julia.koval@intel.com>; Senkevich, Andrew <andrew.senkevich@intel.com>; Peryt, Sebastian <sebastian.peryt@intel.com>; Ivchenko, Alexander <alexander.ivchenko@intel.com>; Joseph Myers <joseph@codesourcery.com>
Subject: Re: [PATCH, i386] Refactor -mprefer-avx[128|256] options into common -mprefer-vector-width=[none|128|256|512]

On Tue, Nov 21, 2017 at 4:50 PM, Shalnov, Sergey <sergey.shalnov@intel.com> wrote:
> Uros,
> I did new patch with all comments addressed as proposed.
> 1. old option -mprefer-avx128 is Alias(mprefer-vector-width=, 128, 
> none) 2. Simplified default initialization (as Bernhard proposed) 3. 
> Fixed documentation (proposed by Sandra) 4. Several tests are changed 
> to use new style of the option but many leaved with -mprefer-avx128 
> (one test with new style -mprefer-vector-width=128)
>
>
> 2017-11-21  Sergey Shalnov  <Sergey.Shalnov@intel.com>
>
> gcc/
>         * config/i386/i386-opts.h (enum prefer_vector_width): Added new enum
>         for the new option -mprefer-vector-width=[none|128|256|512].
>         * config/i386/i386.c (ix86_target_string): remove old style options
>         -mprefer-avx256 and make -mprefer-avx128 as alias.
>         (ix86_option_override_internal):  Apply defaults for the
>         -mprefer-vector-width=[128|256] option.
>         * config/i386/i386.h (TARGET_PREFER_AVX128, TARGET_PREFER_AVX256):
>         Implement macros to work with -mprefer-vector-width=.
>         * config/i386/i386.opt: Implemented option
>         -mprefer-vector-width=[none|128|256|512].
>         * doc/invoke.texi: Documentation for
>         -mprefer-vector-width=[none|128|256|512].
>
> gcc/testsuite/
>         * g++.dg/ext/pr57362.C (__attribute__): Apply new option syntax.
>         * g++.dg/torture/pr81249.C: Ditto.
>         * gcc.target/i386/avx512f-constant-float-return.c: Ditto.
>         * gcc.target/i386/avx512f-prefer.c: Ditto.
>         * gcc.target/i386/pr82460-2.c: Ditto.
>
> Please merge this patch if you think it is acceptable.
> Thank you
> Sergey

 mprefer-avx128
-Target Report Mask(PREFER_AVX128) Save
-Use 128-bit AVX instructions instead of 256-bit AVX instructions in the auto-vectorizer.
+Target Undocumented Alias(mprefer-vector-width=, 128, none)

For compatibility, I'd rather leave this option documented with:

+Target Alias(mprefer-vector-width=, 128, 256)

This would mean that in addition to -mprefer-avx128 switching to 128-bit AVX, -mno-prefer-avx128 would switch to 256-bit AVX, as documented for the option.

The patch is OK, and If you agree, I can commit the patch with the above change.

Thanks,
Uros.

  reply	other threads:[~2017-11-21 17:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-13 17:37 Shalnov, Sergey
2017-11-13 20:23 ` Uros Bizjak
2017-11-13 20:32   ` Uros Bizjak
2017-11-13 23:41   ` Joseph Myers
2017-11-14  8:31     ` Uros Bizjak
2017-11-21 16:07       ` Shalnov, Sergey
2017-11-21 17:19         ` Uros Bizjak
2017-11-21 17:29           ` Shalnov, Sergey [this message]
2017-11-21 20:04             ` Uros Bizjak
2017-11-14 19:38 ` Sandra Loosemore

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=71475DE127B5E94A8E189586234C088822AE597B@irsmsx105.ger.corp.intel.com \
    --to=sergey.shalnov@intel.com \
    --cc=alexander.ivchenko@intel.com \
    --cc=andrew.senkevich@intel.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=joseph@codesourcery.com \
    --cc=julia.koval@intel.com \
    --cc=kirill.yukhin@gmail.com \
    --cc=sebastian.peryt@intel.com \
    --cc=ubizjak@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).