ipa-prop.c (update_indirect_edges_after_inlining): By more careful about not letting...
authorJan Hubicka <hubicka@ucw.cz>
Wed, 4 Feb 2015 23:32:31 +0000 (00:32 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 4 Feb 2015 23:32:31 +0000 (23:32 +0000)
* ipa-prop.c (update_indirect_edges_after_inlining): By more careful
about not letting any speculative edges unupdated.

From-SVN: r220425

gcc/ChangeLog
gcc/ipa-prop.c

index 81b59c8478773acea248843287be478736a6e899..f9726fcf26f65fa70ca2ec2ffe56decfdd2df8ae 100644 (file)
@@ -1,3 +1,8 @@
+2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
+
+       * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
+       about not letting any speculative edges unupdated.
+
 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
 
        PR gcov/64123
index 5f8e461d88fcfee5ea0d9cdc20234b54e59bebe8..878e94f826fd213dce3f40330a1b718f94e67d72 100644 (file)
@@ -3118,7 +3118,8 @@ update_indirect_edges_after_inlining (struct cgraph_edge *cs,
          new_direct_edge->indirect_inlining_edge = 1;
          top = IPA_EDGE_REF (cs);
          res = true;
-         continue;
+         if (!new_direct_edge->speculative)
+           continue;
        }
       else if (new_direct_edge)
        {