cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias check removed.
authorMartin Jambor <mjambor@suse.cz>
Wed, 31 Aug 2011 16:32:47 +0000 (18:32 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Wed, 31 Aug 2011 16:32:47 +0000 (18:32 +0200)
2011-08-31  Martin Jambor  <mjambor@suse.cz>

* cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
check removed.

From-SVN: r178384

gcc/ChangeLog
gcc/cgraphunit.c

index 084ddd244b4e813dbe1dd9e9d54f750a22eecc9d..60bb4b5304745a53c9732037964e79be64766f71 100644 (file)
@@ -1,3 +1,8 @@
+2011-08-31  Martin Jambor  <mjambor@suse.cz>
+
+       * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
+       check removed.
+
 2011-08-31  Richard Guenther  <rguenther@suse.de>
 
        * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
index 5e368f87208fcb0e1466aa038f82632d02c5f16d..f8cbea332929bcf8c8e08ccc2494d0ad1c1bbaaa 100644 (file)
@@ -2373,9 +2373,7 @@ cgraph_redirect_edge_call_stmt_to_callee (struct cgraph_edge *e)
 #endif
 
   if (e->indirect_unknown_callee
-      || decl == e->callee->decl
-      /* Don't update call from same body alias to the real function.  */
-      || (decl && cgraph_get_node (decl) == cgraph_get_node (e->callee->decl)))
+      || decl == e->callee->decl)
     return e->call_stmt;
 
 #ifdef ENABLE_CHECKING