diff options
author | Martin Jambor <mjambor@suse.cz> | 2024-11-24 23:03:43 +0100 |
---|---|---|
committer | Martin Jambor <jamborm@gcc.gnu.org> | 2024-11-24 23:04:08 +0100 |
commit | cc5779fcaf76aeee005f986eb1dc15205c696544 (patch) | |
tree | 2e25f19303fc915c4463c7101ace5f0ac53b247f /gcc/memory-block.h | |
parent | 04f0652c91435987e137a85013a601b8b51d5662 (diff) | |
download | gcc-cc5779fcaf76aeee005f986eb1dc15205c696544.zip gcc-cc5779fcaf76aeee005f986eb1dc15205c696544.tar.gz gcc-cc5779fcaf76aeee005f986eb1dc15205c696544.tar.bz2 |
ipa: Move individual jump function copying to a separate function
When reviewing various IPA bits and pieces I have falsely assumed
that jump function duplication misses copying important bits because
it relies on vec_safe_copy-ing all data in the vector of jump
functions and then just fixes up the few fields it needs to.
Perhaps more importantly, we do want a function to copy one individual
jump function to form jump functions for planned call-graph edges that
model transfer of control to OpenMP outlined regions through calls to
gomp functions.
Therefore, this patch introduces such function and makes
ipa_edge_args_sum_t::duplicate just allocate the new vectors and then
uses the new function to copy the data.
gcc/ChangeLog:
2024-11-01 Martin Jambor <mjambor@suse.cz>
* ipa-prop.cc (ipa_duplicate_jump_function): New function.
(ipa_edge_args_sum_t::duplicate): Move individual jump function
copying to ipa_duplicate_jump_function.
Diffstat (limited to 'gcc/memory-block.h')
0 files changed, 0 insertions, 0 deletions