aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-prop.h
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2020-10-14 11:44:30 +0200
committerJan Hubicka <jh@suse.cz>2020-10-14 11:44:30 +0200
commitc7b6a7587f215e913cec9ed523bf32bb0405fd3f (patch)
treee45f2f02121bc6526d9504f484dec745dea32fc9 /gcc/ipa-prop.h
parent87d75a11a5cb93668ae0bf6d97030e01b2eae3f2 (diff)
downloadgcc-c7b6a7587f215e913cec9ed523bf32bb0405fd3f.zip
gcc-c7b6a7587f215e913cec9ed523bf32bb0405fd3f.tar.gz
gcc-c7b6a7587f215e913cec9ed523bf32bb0405fd3f.tar.bz2
Support ofsetted parameters in local modref
2020-10-14 Jan Hubicka <hubicka@ucw.cz> * doc/invoke.texi: (ipa-jump-function-lookups): Document param. * ipa-modref.c (merge_call_side_effects): Use unadjusted_ptr_and_unit_offset. * ipa-prop.c (unadjusted_ptr_and_unit_offset): New function. * ipa-prop.h (unadjusted_ptr_and_unit_offset): Declare. * params.opt: (-param-ipa-jump-function-lookups): New.
Diffstat (limited to 'gcc/ipa-prop.h')
-rw-r--r--gcc/ipa-prop.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/ipa-prop.h b/gcc/ipa-prop.h
index 8b2edf6..0bbbbf9 100644
--- a/gcc/ipa-prop.h
+++ b/gcc/ipa-prop.h
@@ -1144,6 +1144,8 @@ void ipa_dump_param (FILE *, class ipa_node_params *info, int i);
void ipa_release_body_info (struct ipa_func_body_info *);
tree ipa_get_callee_param_type (struct cgraph_edge *e, int i);
bool ipcp_get_parm_bits (tree, tree *, widest_int *);
+bool unadjusted_ptr_and_unit_offset (tree op, tree *ret,
+ poly_int64 *offset_ret);
/* From tree-sra.c: */
tree build_ref_for_offset (location_t, tree, poly_int64, bool, tree,