------- 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

Reply via email to