From e850f0281c60912faf6f19c2765f0655ff4f179c Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 7 Dec 2006 13:56:02 +0100 Subject: [PATCH] i386.c (nocona_cost, [...]): Update preffered memcpy/memset codegen. * i386.c (nocona_cost, pentium4_cost): Update preffered memcpy/memset codegen. From-SVN: r119620 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/i386.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index aac2bb13e29..4c63be49300 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-12-07 Jan Hubicka + + * i386.c (nocona_cost, pentium4_cost): Update preffered memcpy/memset + codegen. + 2006-12-07 Jan Hubicka * tree-vrp.c (compare_values): Short circuit INTEGER_CST; diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 9dc2feb3d05..fd5c27cc0fc 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -655,9 +655,9 @@ struct processor_costs pentium4_cost = { COSTS_N_INSNS (2), /* cost of FABS instruction. */ COSTS_N_INSNS (2), /* cost of FCHS instruction. */ COSTS_N_INSNS (43), /* cost of FSQRT instruction. */ - {{libcall, {{12, loop_1_byte}, {64, loop}, {-1, rep_prefix_4_byte}}}, + {{libcall, {{12, loop_1_byte}, {-1, rep_prefix_4_byte}}}, DUMMY_STRINGOP_ALGS}, - {{libcall, {{6, loop_1_byte}, {64, loop}, {20480, rep_prefix_4_byte}, + {{libcall, {{6, loop_1_byte}, {48, loop}, {20480, rep_prefix_4_byte}, {-1, libcall}}}, DUMMY_STRINGOP_ALGS}, }; @@ -713,10 +713,10 @@ struct processor_costs nocona_cost = { COSTS_N_INSNS (3), /* cost of FABS instruction. */ COSTS_N_INSNS (3), /* cost of FCHS instruction. */ COSTS_N_INSNS (44), /* cost of FSQRT instruction. */ - {{libcall, {{12, loop_1_byte}, {64, loop}, {-1, rep_prefix_4_byte}}}, + {{libcall, {{12, loop_1_byte}, {-1, rep_prefix_4_byte}}}, {libcall, {{32, loop}, {20000, rep_prefix_8_byte}, {100000, unrolled_loop}, {-1, libcall}}}}, - {{libcall, {{6, loop_1_byte}, {64, loop}, {20480, rep_prefix_4_byte}, + {{libcall, {{6, loop_1_byte}, {48, loop}, {20480, rep_prefix_4_byte}, {-1, libcall}}}, {libcall, {{24, loop}, {64, unrolled_loop}, {8192, rep_prefix_8_byte}, {-1, libcall}}}} -- 2.30.2