aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-inline.c
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2021-12-06 09:33:32 -0700
committerMartin Sebor <msebor@redhat.com>2021-12-09 09:51:48 -0700
commit1334d889d4adbff999fd33d5e1672ecd6bb66dd7 (patch)
treeef670830f4e7b41174e060cfbcbace9f78bccd98 /gcc/ipa-inline.c
parent10d185b9845ad96edf45d55ca066a0258d3c3f9a (diff)
downloadgcc-1334d889d4adbff999fd33d5e1672ecd6bb66dd7.zip
gcc-1334d889d4adbff999fd33d5e1672ecd6bb66dd7.tar.gz
gcc-1334d889d4adbff999fd33d5e1672ecd6bb66dd7.tar.bz2
Refactor compute_objsize_r into helpers.
gcc/ChangeLog: * pointer-query.cc (compute_objsize_r): Add an argument. (gimple_call_return_array): Pass a new argument to compute_objsize_r. (access_ref::merge_ref): Same. (access_ref::inform_access): Add an argument and use it. (access_data::access_data): Initialize new member. (handle_min_max_size): Pass a new argument to compute_objsize_r. (handle_decl): New function. (handle_array_ref): Pass a new argument to compute_objsize_r. Avoid incrementing deref. (set_component_ref_size): New function. (handle_component_ref): New function. (handle_mem_ref): Pass a new argument to compute_objsize_r. Only increment deref after successfully computing object size. (handle_ssa_name): New function. (compute_objsize_r): Move code into helpers and call them. (compute_objsize): Pass a new argument to compute_objsize_r. * pointer-query.h (access_ref::inform_access): Add an argument. (access_data::ostype): New member.
Diffstat (limited to 'gcc/ipa-inline.c')
0 files changed, 0 insertions, 0 deletions