From: "Kumar, Venkataramanan" <Venkataramanan.Kumar@amd.com>
To: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Cc: "Uros Bizjak (ubizjak@gmail.com)" <ubizjak@gmail.com>
Subject: [Patch, i386]: Set avx128 preferred vector mode for btver2
Date: Wed, 09 Jan 2013 05:06:00 -0000 [thread overview]
Message-ID: <7794A52CE4D579448B959EED7DD0A47214F6B504@sausexdag05.amd.com> (raw)
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.
next reply other threads:[~2013-01-09 5:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-09 5:06 Kumar, Venkataramanan [this message]
2013-01-09 6:53 ` Uros Bizjak
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=7794A52CE4D579448B959EED7DD0A47214F6B504@sausexdag05.amd.com \
--to=venkataramanan.kumar@amd.com \
--cc=gcc-patches@gcc.gnu.org \
--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).