This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, i386] Avoid 512-bit mode MOV for prefer-avx256 option in Intel AVX512 configuration
- From: Kirill Yukhin <kirill dot yukhin at gmail dot com>
- To: "Shalnov, Sergey" <sergey dot shalnov at intel dot com>
- Cc: Jakub Jelinek <jakub at redhat dot com>, "'gcc-patches at gcc dot gnu dot org'" <gcc-patches at gcc dot gnu dot org>, "'ubizjak at gmail dot com'" <ubizjak at gmail dot com>, "Senkevich, Andrew" <andrew dot senkevich at intel dot com>, "Ivchenko, Alexander" <alexander dot ivchenko at intel dot com>, "Peryt, Sebastian" <sebastian dot peryt at intel dot com>
- Date: Tue, 24 Oct 2017 13:35:01 +0300
- Subject: Re: [PATCH, i386] Avoid 512-bit mode MOV for prefer-avx256 option in Intel AVX512 configuration
- Authentication-results: sourceware.org; auth=none
- References: <71475DE127B5E94A8E189586234C088822ACA649@IRSMSX101.ger.corp.intel.com> <20171006095732.GL18588@tucnak> <71475DE127B5E94A8E189586234C088822ACA87C@IRSMSX101.ger.corp.intel.com> <20171018181001.GC16502@titus> <71475DE127B5E94A8E189586234C088822ACFF65@IRSMSX101.ger.corp.intel.com>
On 20 Oct 08:20, Shalnov, Sergey wrote:
> I can't propose general solution since TARGET_PREFER256 is AVX512 specific.
> Sorry for misunderstanding.
Okay than. I've checked in your patch into main trunk, thanks!
--
K
> Sergey
>
> -----Original Message-----
> From: gcc-patches-owner@gcc.gnu.org [mailto:gcc-patches-owner@gcc.gnu.org] On Behalf Of Kirill Yukhin
> Sent: Wednesday, October 18, 2017 8:10 PM
> To: Shalnov, Sergey <sergey.shalnov@intel.com>
> Cc: Jakub Jelinek <jakub@redhat.com>; 'gcc-patches@gcc.gnu.org' <gcc-patches@gcc.gnu.org>; 'ubizjak@gmail.com' <ubizjak@gmail.com>; Senkevich, Andrew <andrew.senkevich@intel.com>; Ivchenko, Alexander <alexander.ivchenko@intel.com>; Peryt, Sebastian <sebastian.peryt@intel.com>
> Subject: Re: [PATCH, i386] Avoid 512-bit mode MOV for prefer-avx256 option in Intel AVX512 configuration
>
> Hello Sergey,
> On 06 Oct 14:20, Shalnov, Sergey wrote:
> > Jakub,
> > I completely agree with you. I fixed the patch.
> > Currently, TARGET_PREFER256 will work on architectures with 512VL. It will not work otherwise.
> >
> > I will try to find better solution for this. I think I need to look
> > into register classes to configure available registers for 512F and 512VL in case of TARGET_PREFER_AVX256.
> Probably I am missing the point, but IMHO think register classes are loosely connected to preferred modes of operations.
>
> > I would propose to merge this patch as temporal solution.
> Why not to implement generic solution right now?
> I don't think're in hurry here to push temporal solution unless we have some reasoning.
>
> I see only few mentions of TARGET_PREFER_AVX256 in i386.[c|md] and nothing looks suspicious to me.
>
> >
> > Sergey
>
> --
> Thanks, K