* [Patch, i386]: Set avx128 preferred vector mode for btver2
@ 2013-01-09 5:06 Kumar, Venkataramanan
2013-01-09 6:53 ` Uros Bizjak
0 siblings, 1 reply; 2+ messages in thread
From: Kumar, Venkataramanan @ 2013-01-09 5:06 UTC (permalink / raw)
To: gcc-patches; +Cc: Uros Bizjak (ubizjak@gmail.com)
Hi Maintainers,
Please fine below patch that sets preferred vectorization mode for btver2 as avx128.
We tested some benchmarks and found that enabling 128-bit AVX instruction generation by the auto vectorizer performs better than
default 256-bit AVX.
Completed bootstrap and make -k check passes.
Ok for trunk?
Gcc/ChangeLog
-------------------
2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
* config/i386/i386.c (initial_ix86_tune_features): Set up
X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
Index: i386.c
===================================================================
--- i386.c (revision 194833)
+++ i386.c (working copy)
@@ -2014,7 +2014,7 @@
/* X86_TUNE_AVX128_OPTIMAL: Enable 128-bit AVX instruction generation for
the auto-vectorizer. */
- m_BDVER,
+ m_BDVER | m_BTVER2,
/* X86_TUNE_REASSOC_INT_TO_PARALLEL: Try to produce parallel computations
during reassociation of integer computation. */
Regards,
Venkat.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Patch, i386]: Set avx128 preferred vector mode for btver2
2013-01-09 5:06 [Patch, i386]: Set avx128 preferred vector mode for btver2 Kumar, Venkataramanan
@ 2013-01-09 6:53 ` Uros Bizjak
0 siblings, 0 replies; 2+ messages in thread
From: Uros Bizjak @ 2013-01-09 6:53 UTC (permalink / raw)
To: Kumar, Venkataramanan; +Cc: gcc-patches
On Wed, Jan 9, 2013 at 6:05 AM, Kumar, Venkataramanan
<Venkataramanan.Kumar@amd.com> wrote:
> Please fine below patch that sets preferred vectorization mode for btver2 as avx128.
>
> We tested some benchmarks and found that enabling 128-bit AVX instruction generation by the auto vectorizer performs better than
> default 256-bit AVX.
>
> Completed bootstrap and make -k check passes.
>
> Ok for trunk?
>
> Gcc/ChangeLog
> -------------------
>
> 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
>
> * config/i386/i386.c (initial_ix86_tune_features): Set up
> X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
OK.
Thanks,
Uros.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-01-09 6:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-09 5:06 [Patch, i386]: Set avx128 preferred vector mode for btver2 Kumar, Venkataramanan
2013-01-09 6:53 ` Uros Bizjak
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).