* x86-tune-costs.h (intel_cost, generic_cost): Fix move costs.
authorJan Hubicka <hubicka@ucw.cz>
Fri, 20 Oct 2017 20:51:50 +0000 (22:51 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 20 Oct 2017 20:51:50 +0000 (20:51 +0000)
From-SVN: r253958

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

index 1274635d19d965004e8e09ba70e93cd64ddd5359..91c9cfcf1bb5e42966e169f2be9bdc513e564887 100644 (file)
@@ -1,3 +1,7 @@
+2017-10-20  Jan Hubicka  <hubicka@ucw.cz>
+
+       * x86-tune-costs.h (intel_cost, generic_cost): Fix move costs.
+
 2017-10-20  Jakub Jelinek  <jakub@redhat.com>
 
        * config/i386/i386.md (isa): Remove fma_avx512f.
index 3f7a4f23c92e4db8c7aee347c6bd1f63116d2757..761d421312e0db6d78d72be7a1c24557177e4e22 100644 (file)
@@ -2121,27 +2121,27 @@ struct processor_costs intel_cost = {
   COSTS_N_INSNS (1),                   /* cost of movzx */
   8,                                   /* "large" insn */
   17,                                  /* MOVE_RATIO */
-  4,                                   /* cost for loading QImode using movzbl */
+  6,                                /* cost for loading QImode using movzbl */
   {4, 4, 4},                           /* cost of loading integer registers
                                           in QImode, HImode and SImode.
                                           Relative to reg-reg move (2).  */
-  {4, 4, 4},                           /* cost of storing integer registers */
-  4,                                   /* cost of reg,reg fld/fst */
-  {12, 12, 12},                                /* cost of loading fp registers
+  {6, 6, 6},                           /* cost of storing integer registers */
+  2,                                   /* cost of reg,reg fld/fst */
+  {6, 6, 8},                           /* cost of loading fp registers
                                           in SFmode, DFmode and XFmode */
-  {6, 6, 8},                           /* cost of storing fp registers
+  {6, 6, 10},                          /* cost of storing fp registers
                                           in SFmode, DFmode and XFmode */
   2,                                   /* cost of moving MMX register */
-  {8, 8},                              /* cost of loading MMX registers
+  {6, 6},                              /* cost of loading MMX registers
                                           in SImode and DImode */
-  {8, 8},                              /* cost of storing MMX registers
+  {6, 6},                              /* cost of storing MMX registers
                                           in SImode and DImode */
   2,                                   /* cost of moving SSE register */
-  {8, 8, 8},                           /* cost of loading SSE registers
+  {6, 6, 6},                           /* cost of loading SSE registers
                                           in SImode, DImode and TImode */
-  {8, 8, 8},                           /* cost of storing SSE registers
+  {6, 6, 6},                           /* cost of storing SSE registers
                                           in SImode, DImode and TImode */
-  5,                                   /* MMX or SSE register to integer */
+  2,                                   /* MMX or SSE register to integer */
   32,                                  /* size of l1 cache.  */
   256,                                 /* size of l2 cache.  */
   64,                                  /* size of prefetch block */
@@ -2221,23 +2221,23 @@ struct processor_costs generic_cost = {
   {4, 4, 4},                           /* cost of loading integer registers
                                           in QImode, HImode and SImode.
                                           Relative to reg-reg move (2).  */
-  {4, 4, 4},                           /* cost of storing integer registers */
+  {6, 6, 6},                           /* cost of storing integer registers */
   4,                                   /* cost of reg,reg fld/fst */
-  {12, 12, 12},                                /* cost of loading fp registers
+  {6, 6, 12},                          /* cost of loading fp registers
                                           in SFmode, DFmode and XFmode */
-  {6, 6, 8},                           /* cost of storing fp registers
+  {6, 6, 12},                          /* cost of storing fp registers
                                           in SFmode, DFmode and XFmode */
   2,                                   /* cost of moving MMX register */
-  {8, 8},                              /* cost of loading MMX registers
+  {6, 6},                              /* cost of loading MMX registers
                                           in SImode and DImode */
-  {8, 8},                              /* cost of storing MMX registers
+  {6, 6},                              /* cost of storing MMX registers
                                           in SImode and DImode */
   2,                                   /* cost of moving SSE register */
-  {8, 8, 8},                           /* cost of loading SSE registers
+  {6, 6, 6},                           /* cost of loading SSE registers
                                           in SImode, DImode and TImode */
-  {8, 8, 8},                           /* cost of storing SSE registers
+  {6, 6, 6},                           /* cost of storing SSE registers
                                           in SImode, DImode and TImode */
-  5,                                   /* MMX or SSE register to integer */
+  6,                                   /* MMX or SSE register to integer */
   32,                                  /* size of l1 cache.  */
   512,                                 /* size of l2 cache.  */
   64,                                  /* size of prefetch block */
@@ -2326,7 +2326,7 @@ struct processor_costs core_cost = {
   2,                                   /* cost of reg,reg fld/fst */
   {6, 6, 8},                           /* cost of loading fp registers
                                           in SFmode, DFmode and XFmode */
-  {8, 6, 10},                          /* cost of storing fp registers
+  {6, 6, 10},                          /* cost of storing fp registers
                                           in SFmode, DFmode and XFmode */
   2,                                   /* cost of moving MMX register */
   {6, 6},                              /* cost of loading MMX registers