Message ID | CAOvf_xwG-eyMZT5jNzkWhuiMzH4ZuwBqeTO31oPunwVe5qijfQ@mail.gmail.com |
---|---|
State | New |
Headers | show |
On Tue, Apr 15, 2014 at 6:06 PM, Evgeny Stupachenko <evstupac@gmail.com> wrote: > I've separated the patch into 3. > The patch passes x86 bootstrap. > > 1st part: > > 2014-04-15 Evgeny Stupachenko <evstupac@gmail.com> > > * config/i386/i386.c (slm_cost): Fixing vec_to_scalar_cost for > Silvermont according latency table. ... : Adjust vec_to_scalar_cost. > (intel_cost): Ditto. OK for mainline with the above ChangeLog fix. Thanks, Uros.
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index f2e6957..bf4d576 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -1738,7 +1738,7 @@ struct processor_costs slm_cost = { 1, /* scalar load_cost. */ 1, /* scalar_store_cost. */ 1, /* vec_stmt_cost. */ - 1, /* vec_to_scalar_cost. */ + 4, /* vec_to_scalar_cost. */ 1, /* scalar_to_vec_cost. */ 1, /* vec_align_load_cost. */ 2, /* vec_unalign_load_cost. */ @@ -1815,7 +1815,7 @@ struct processor_costs intel_cost = { 1, /* scalar load_cost. */ 1, /* scalar_store_cost. */ 1, /* vec_stmt_cost. */ - 1, /* vec_to_scalar_cost. */ + 4, /* vec_to_scalar_cost. */ 1, /* scalar_to_vec_cost. */ 1, /* vec_align_load_cost. */ 2, /* vec_unalign_load_cost. */