aboutsummaryrefslogtreecommitdiff
path: root/gcc
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
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')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-eh.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 17f3d60..2b764ee 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
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