aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-eh.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2004-06-18 15:32:49 -0700
committerRichard Henderson <rth@gcc.gnu.org>2004-06-18 15:32:49 -0700
commit7465ed07083691bf03e737e8709afa0e20c5f82f (patch)
treeec8c430ba966a8507274092c5b8a6d1bebcc527e /gcc/tree-eh.c
parenta9042bb454c0dee2b44922f6a0ddf1849c8a7228 (diff)
downloadgcc-7465ed07083691bf03e737e8709afa0e20c5f82f.zip
gcc-7465ed07083691bf03e737e8709afa0e20c5f82f.tar.gz
gcc-7465ed07083691bf03e737e8709afa0e20c5f82f.tar.bz2
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
Diffstat (limited to 'gcc/tree-eh.c')
-rw-r--r--gcc/tree-eh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-eh.c b/gcc/tree-eh.c
index a4a0bc4..27f33c9 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