Hi!

On 11/5/24 12:06, Martin Jambor wrote:
+/* Copy information from SRC_JF to DST_JF which correstpond to call graph edges
+   SRC and DST.  */
+
+static void
+ipa_duplicate_jump_function (cgraph_edge *src, cgraph_edge *dst,
+                            ipa_jump_func *src_jf, ipa_jump_func *dst_jf)

I am not sure this function copies over all necessary information, e.g. jump function type. It will work fine when used in the duplication hook, as the dst jump functions are created through

new_args->jump_functions = vec_safe_copy (old_args->jump_functions);

so all other information is copied over, but I don't think that's the case when using this function on its own. When a jump function is constructed through different means, will the contents of the jump functions still match ?


Best regards,

Josef Melcr

Reply via email to