Skip to content

Commit

Permalink
2014-09-24 Martin Jambor <[email protected]>
Browse files Browse the repository at this point in the history
	* ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
	when duplicating a PASS_THROUGH jump function when creating a
	speculative edge.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215560 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
jamborm committed Sep 24, 2014
1 parent 5213d6c commit 270bb32
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2014-09-24 Martin Jambor <[email protected]>

* 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 <[email protected]>

PR c/61405
Expand Down
15 changes: 15 additions & 0 deletions gcc/ipa-prop.c
Original file line number Diff line number Diff line change
Expand Up @@ -3640,6 +3640,21 @@ ipa_edge_duplication_hook (struct cgraph_edge *src, struct cgraph_edge *dst,
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);
}
}
}
}

Expand Down

0 comments on commit 270bb32

Please sign in to comment.