From 48b24f49220ac3967ecc94fd4099f1fbda238cfa Mon Sep 17 00:00:00 2001 From: rguenth Date: Mon, 13 Apr 2015 07:33:51 +0000 Subject: [PATCH] 2015-04-13 Richard Biener PR target/65660 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost and cond_not_taken_branch_cost to 4 and 2. (bdver2_cost): Likewise. (bdver3_cost): Likewise. (bdver4_cost): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222040 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 9 +++++++++ gcc/config/i386/i386.c | 16 ++++++++-------- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0d3495fd0bd..e81d6da9591 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2015-04-13 Richard Biener + + PR target/65660 + * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost + and cond_not_taken_branch_cost to 4 and 2. + (bdver2_cost): Likewise. + (bdver3_cost): Likewise. + (bdver4_cost): Likewise. + 2015-04-12 Jan Hubicka * hash-table.h (hash_table constructor): Add mem stats. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index b442da9802e..3263656eef3 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -1025,8 +1025,8 @@ const struct processor_costs bdver1_cost = { 4, /* vec_align_load_cost. */ 4, /* vec_unalign_load_cost. */ 4, /* vec_store_cost. */ - 2, /* cond_taken_branch_cost. */ - 1, /* cond_not_taken_branch_cost. */ + 4, /* cond_taken_branch_cost. */ + 2, /* cond_not_taken_branch_cost. */ }; /* BDVER2 has optimized REP instruction for medium sized blocks, but for @@ -1121,8 +1121,8 @@ const struct processor_costs bdver2_cost = { 4, /* vec_align_load_cost. */ 4, /* vec_unalign_load_cost. */ 4, /* vec_store_cost. */ - 2, /* cond_taken_branch_cost. */ - 1, /* cond_not_taken_branch_cost. */ + 4, /* cond_taken_branch_cost. */ + 2, /* cond_not_taken_branch_cost. */ }; @@ -1208,8 +1208,8 @@ struct processor_costs bdver3_cost = { 4, /* vec_align_load_cost. */ 4, /* vec_unalign_load_cost. */ 4, /* vec_store_cost. */ - 2, /* cond_taken_branch_cost. */ - 1, /* cond_not_taken_branch_cost. */ + 4, /* cond_taken_branch_cost. */ + 2, /* cond_not_taken_branch_cost. */ }; /* BDVER4 has optimized REP instruction for medium sized blocks, but for @@ -1294,8 +1294,8 @@ struct processor_costs bdver4_cost = { 4, /* vec_align_load_cost. */ 4, /* vec_unalign_load_cost. */ 4, /* vec_store_cost. */ - 2, /* cond_taken_branch_cost. */ - 1, /* cond_not_taken_branch_cost. */ + 4, /* cond_taken_branch_cost. */ + 2, /* cond_not_taken_branch_cost. */ }; /* BTVER1 has optimized REP instruction for medium sized blocks, but for -- 2.11.4.GIT