From: Richard Henderson Date: Fri, 18 Jun 2004 22:32:49 +0000 (-0700) Subject: tree-eh.c (decide_copy_try_finally): Fix scaling of copy and switch estimates. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7465ed07083691bf03e737e8709afa0e20c5f82f;p=gcc.git tree-eh.c (decide_copy_try_finally): Fix scaling of copy and switch estimates. * tree-eh.c (decide_copy_try_finally): Fix scaling of copy and switch estimates. From-SVN: r83367 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 17f3d60c1a2..2b764ee9ece 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-06-18 Richard Henderson + + * tree-eh.c (decide_copy_try_finally): Fix scaling of copy and + switch estimates. + 2004-06-18 Andrew Pinski * config/i386/darwin.h (HOT_TEXT_SECTION_NAME): Define. diff --git a/gcc/tree-eh.c b/gcc/tree-eh.c index a4a0bc41d6e..27f33c9141f 100644 --- a/gcc/tree-eh.c +++ b/gcc/tree-eh.c @@ -1246,9 +1246,9 @@ decide_copy_try_finally (int ndests, tree finally) /* ??? These numbers are completely made up so far. */ if (optimize > 1) - return f_estimate < 100 || f_estimate * 2 < sw_estimate; + return f_estimate < 100 || f_estimate < sw_estimate * 2; else - return f_estimate < 40 || f_estimate * 3 < sw_estimate * 2; + return f_estimate < 40 || f_estimate * 2 < sw_estimate * 3; } /* A subroutine of lower_eh_constructs_1. Lower a TRY_FINALLY_EXPR nodes