https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102059

--- Comment #17 from Kewen Lin <linkw at gcc dot gnu.org> ---
Created attachment 51357
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51357&action=edit
Fix some issues in rs6000_can_inline_p

As Martin pointed out, currently function rs6000_can_inline_p just returns true
when the callee_tree is NULL, we should use the target_option_default_node
instead. Besides, for the else arm we should use target_option_default_node for
caller_tree since I noticed rs6000_isa_flags can probably vary since global
initialization (like from later calls to rs6000_option_override_internal). The
existing explicit option checks only work for non-NULL callee_tree before, but
it should apply for NULL callee_tree case, *-2.c case is used to cover/verify
it. The testing is ongoing.

Reply via email to