Commit 7465ed07 by Richard Henderson Committed by Richard Henderson

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
parent a9042bb4
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment