diff options
Diffstat (limited to 'gcc/ipa-ref.c')
-rw-r--r-- | gcc/ipa-ref.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ipa-ref.c b/gcc/ipa-ref.c index dd6b009ce58..27c32dcd3d6 100644 --- a/gcc/ipa-ref.c +++ b/gcc/ipa-ref.c @@ -233,3 +233,11 @@ ipa_clone_refering (struct cgraph_node *dest_node, dest_node, dest_varpool_node, ref->use, ref->stmt); } + +/* Return true when execution of REF can load to return from + function. */ +bool +ipa_ref_cannot_lead_to_return (struct ipa_ref *ref) +{ + return cgraph_node_cannot_return (ipa_ref_refering_node (ref)); +} |