x86-tune-costs.h (skylake_memcpy, [...]): Replace rep_prefix with unrolling for size...
authorAndrew Senkevich <andrew.senkevich@intel.com>
Thu, 19 Jul 2018 06:49:10 +0000 (06:49 +0000)
committerJulia Koval <jkoval@gcc.gnu.org>
Thu, 19 Jul 2018 06:49:10 +0000 (08:49 +0200)
* 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

gcc/ChangeLog
gcc/config/i386/x86-tune-costs.h

index b34ae54..78cf6b7 100644 (file)
@@ -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
index 8409a5f..ff28934 100644 (file)
@@ -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