+2014-09-24 Martin Jambor <mjambor@suse.cz>
+
+ * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
+ when duplicating a PASS_THROUGH jump function when creating a
+ speculative edge.
+
2014-09-24 Marek Polacek <polacek@redhat.com>
PR c/61405
dst_jf->value.constant.rdesc = dst_rdesc;
}
}
+ else if (dst_jf->type == IPA_JF_PASS_THROUGH
+ && src->caller == dst->caller)
+ {
+ struct cgraph_node *inline_root = dst->caller->global.inlined_to
+ ? dst->caller->global.inlined_to : dst->caller;
+ struct ipa_node_params *root_info = IPA_NODE_REF (inline_root);
+ int idx = ipa_get_jf_pass_through_formal_id (dst_jf);
+
+ int c = ipa_get_controlled_uses (root_info, idx);
+ if (c != IPA_UNDESCRIBED_USE)
+ {
+ c++;
+ ipa_set_controlled_uses (root_info, idx, c);
+ }
+ }
}
}