ipa-prop.c (try_make_edge_direct_simple_call): Do not special case speculative edges.
authorJan Hubicka <jh@suse.cz>
Mon, 9 Sep 2013 06:13:24 +0000 (08:13 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 9 Sep 2013 06:13:24 +0000 (06:13 +0000)
* ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
speculative edges.

From-SVN: r202381

gcc/ChangeLog
gcc/ipa-prop.c

index b4f6417e9f6b47b8e3f37c6944dfbd333a30e5d8..38f1e95c330131c976aeb9ab19e4a34a75928975 100644 (file)
@@ -1,3 +1,8 @@
+2013-09-08  Jan Hubicka  <jh@suse.cz>
+
+       * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
+       speculative edges.
+
 2013-09-08  Jan Hubicka  <jh@suse.cz>
 
        * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
index f9f8e2d773e9934c49ed699884b3f91194376563..67811bbdcfb6c78689c57e06cabc5bd5ce5d1b2f 100644 (file)
@@ -2586,7 +2586,6 @@ try_make_edge_direct_simple_call (struct cgraph_edge *ie,
   struct cgraph_edge *cs;
   tree target;
   bool agg_contents = ie->indirect_info->agg_contents;
-  bool speculative = ie->speculative;
 
   if (ie->indirect_info->agg_contents)
     target = ipa_find_agg_cst_for_param (&jfunc->agg,
@@ -2598,8 +2597,7 @@ try_make_edge_direct_simple_call (struct cgraph_edge *ie,
     return NULL;
   cs = ipa_make_edge_direct_to_target (ie, target);
 
-  /* FIXME: speculative edges can be handled.  */
-  if (cs && !agg_contents && !speculative)
+  if (cs && !agg_contents)
     {
       bool ok;
       gcc_checking_assert (cs->callee