This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/32624] [4.3 Regression] r126198 causes tramp3d slowdown w/o leafify
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jul 2007 16:31:48 -0000
- Subject: [Bug middle-end/32624] [4.3 Regression] r126198 causes tramp3d slowdown w/o leafify
- References: <bug-32624-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from rguenth at gcc dot gnu dot org 2007-07-04 16:31 -------
So, the following patch brings performance back in-line:
Index: tree-inline.c
===================================================================
--- tree-inline.c (revision 126325)
+++ tree-inline.c (working copy)
@@ -1283,8 +1283,7 @@ setup_one_parameter (copy_body_data *id,
? gimple_default_def (id->src_cfun, p) : NULL);
if (value
- && value != error_mark_node
- && !useless_type_conversion_p (TREE_TYPE (p), TREE_TYPE (value)))
+ && value != error_mark_node)
rhs = fold_build1 (NOP_EXPR, TREE_TYPE (p), value);
/* If the parameter is never assigned to, has no SSA_NAMEs created,
which doesn't make sense, as it is then just unconditionally adding a
temporary and a conversion.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32624