ipa-fnsummary.c (remap_edge_change_prob): Do not ICE when changes are not streamed in.
authorJan Hubicka <hubicka@ucw.cz>
Sun, 16 Dec 2018 18:57:48 +0000 (19:57 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 16 Dec 2018 18:57:48 +0000 (18:57 +0000)
* ipa-fnsummary.c (remap_edge_change_prob): Do not ICE when changes
are not streamed in.

From-SVN: r267191

gcc/ChangeLog
gcc/ipa-fnsummary.c

index 2b957549157e1eba4c63c4eab8b727a56353ed39..83cacbfc1b1809b2b7a9a1b0739ed5b8fefb78aa 100644 (file)
@@ -1,3 +1,8 @@
+2018-12-15  Jan Hubicka  <hubicka@ucw.cz>
+
+       * ipa-fnsummary.c (remap_edge_change_prob): Do not ICE when changes
+       are not streamed in.
+
 2018-12-15  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR target/88483
index 2f038909ab4677cfaf4eabe12177976ff5a5f5bb..471ec5038516a379a1e158b6df0a64abaa8b1eb8 100644 (file)
@@ -2861,6 +2861,9 @@ remap_edge_change_prob (struct cgraph_edge *inlined_edge,
       struct ipa_call_summary *inlined_es
        = ipa_call_summaries->get (inlined_edge);
 
+      if (es->param.length () == 0)
+       return;
+
       for (i = 0; i < ipa_get_cs_argument_count (args); i++)
        {
          struct ipa_jump_func *jfunc = ipa_get_ith_jump_func (args, i);