This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/32624] [4.3 Regression] r126198 causes tramp3d slowdown w/o leafify



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]