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
This commit is contained in:
parent
a9042bb454
commit
7465ed0708
|
@ -1,3 +1,8 @@
|
|||
2004-06-18 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* tree-eh.c (decide_copy_try_finally): Fix scaling of copy and
|
||||
switch estimates.
|
||||
|
||||
2004-06-18 Andrew Pinski <pinskia@physics.uc.edu>
|
||||
|
||||
* config/i386/darwin.h (HOT_TEXT_SECTION_NAME): Define.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue