From 008605896461ec52eefda23c7a8b770a62fda554 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 5 Oct 2017 17:00:25 +0200 Subject: [PATCH] i386.c (znver1_cost): Set branch_cost to 3 (instead of 2) to improve monte carlo in scimark. * i386.c (znver1_cost): Set branch_cost to 3 (instead of 2) to improve monte carlo in scimark. From-SVN: r253449 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/i386.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ef4a47cf0ad..43bb1473551 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-10-05 Jan Hubicka + + * i386.c (znver1_cost): Set branch_cost to 3 (instead of 2) + to improve monte carlo in scimark. + 2017-10-05 Jan Hubicka * i386.c (ix86_size_cost, i386_cost, i486_cost, pentium_cost, diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index b7c125c20ec..01115e9eb67 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -1421,7 +1421,7 @@ struct processor_costs znver1_cost = { to limit number of prefetches at all, as their execution also takes some time). */ 100, /* number of parallel prefetches. */ - 2, /* Branch cost. */ + 3, /* Branch cost. */ COSTS_N_INSNS (6), /* cost of FADD and FSUB insns. */ COSTS_N_INSNS (6), /* cost of FMUL instruction. */ COSTS_N_INSNS (42), /* cost of FDIV instruction. */ -- 2.30.2