aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Senkevich <andrew.senkevich@intel.com>2018-07-19 06:49:10 +0000
committerJulia Koval <jkoval@gcc.gnu.org>2018-07-19 08:49:10 +0200
commit6e559c70b7525cea4174ea958067987e64314e1b (patch)
treeeaff1d13ed007b9f66a7a227718ea06c48f49295
parent4a4dab51a33598ca67ef07e95f6f82beb0ff2e5f (diff)
downloadgcc-6e559c70b7525cea4174ea958067987e64314e1b.zip
gcc-6e559c70b7525cea4174ea958067987e64314e1b.tar.gz
gcc-6e559c70b7525cea4174ea958067987e64314e1b.tar.bz2
x86-tune-costs.h (skylake_memcpy, [...]): Replace rep_prefix with unrolling for size 512.
* config/i386/x86-tune-costs.h (skylake_memcpy, skylake_memset): Replace rep_prefix with unrolling for size 512. Co-Authored-By: Julia Koval <julia.koval@intel.com> From-SVN: r262871
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/i386/x86-tune-costs.h4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b34ae54..78cf6b7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2018-07-19 Andrew Senkevich <andrew.senkevich@intel.com>
+ Julia Koval <julia.koval@intel.com>
+
+ * config/i386/x86-tune-costs.h (skylake_memcpy,
+ skylake_memset): Replace rep_prefix with unrolling for size 512.
+
2018-07-18 Kugan Vivekanandarajah <kuganv@linaro.org>
PR middle-end/86544
diff --git a/gcc/config/i386/x86-tune-costs.h b/gcc/config/i386/x86-tune-costs.h
index 8409a5f..ff28934 100644
--- a/gcc/config/i386/x86-tune-costs.h
+++ b/gcc/config/i386/x86-tune-costs.h
@@ -1518,7 +1518,7 @@ struct processor_costs znver1_cost = {
/* skylake_cost should produce code tuned for Skylake familly of CPUs. */
static stringop_algs skylake_memcpy[2] = {
{libcall, {{1024, rep_prefix_4_byte, true}, {-1, libcall, false}}},
- {libcall, {{16, loop, false}, {512, rep_prefix_8_byte, false},
+ {libcall, {{16, loop, false}, {512, unrolled_loop, false},
{-1, libcall, false}}}};
static stringop_algs skylake_memset[2] = {
@@ -1526,7 +1526,7 @@ static stringop_algs skylake_memset[2] = {
{24, loop, true},
{8192, rep_prefix_4_byte, true},
{-1, libcall, false}}},
- {libcall, {{24, loop, true}, {512, rep_prefix_8_byte, false},
+ {libcall, {{24, loop, true}, {512, unrolled_loop, false},
{-1, libcall, false}}}};
static const