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 084ddd2..60bb4b5 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 5e368f8..f8cbea3 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