re PR ipa/60327 (xalanbmk and dealII ICE in ipa-inline-analysis.c:3555)
authorRichard Biener <rguenther@suse.de>
Wed, 26 Feb 2014 08:39:48 +0000 (08:39 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 26 Feb 2014 08:39:48 +0000 (08:39 +0000)
2014-02-26  Richard Biener  <rguenther@suse.de>

PR ipa/60327
* ipa.c (walk_polymorphic_call_targets): Properly guard
call to inline_update_overall_summary.

From-SVN: r208167

gcc/ChangeLog
gcc/ipa.c

index 3b4c2b9..32b7ffd 100644 (file)
@@ -1,3 +1,9 @@
+2014-02-26  Richard Biener  <rguenther@suse.de>
+
+       PR ipa/60327
+       * ipa.c (walk_polymorphic_call_targets): Properly guard
+       call to inline_update_overall_summary.
+
 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
 
        PR target/60280
index b3b6306..405ee64 100644 (file)
--- a/gcc/ipa.c
+++ b/gcc/ipa.c
@@ -223,10 +223,10 @@ walk_polymorphic_call_targets (pointer_set_t *reachable_call_targets,
                     edge->caller->order,
                     target->name (), target->order);
          edge = cgraph_make_edge_direct (edge, target);
-         if (!inline_summary_vec && edge->call_stmt)
-           cgraph_redirect_edge_call_stmt_to_callee (edge);
-         else
+         if (inline_summary_vec)
            inline_update_overall_summary (node);
+         else if (edge->call_stmt)
+           cgraph_redirect_edge_call_stmt_to_callee (edge);
        }
     }
 }