Hi,

On Tue, May 11 2021, Richard Biener wrote:
> This fixes unintended clobbering of SSA_NAME_DEF_STMT of the
> cloned/inlined from SSA name during IPA parameter manipulation
> of call stmt LHSs.  gimple_call_set_lhs adjusts SSA_NAME_DEF_STMT
> of the lhs to the stmt being modified but when
> ipa_param_body_adjustments::modify_call_stmt is called the
> cloning/inlining process has not yet remapped the stmts operands
> to the copy variants but they are still original.
>
> Bootstrapped on x86_64-unknown-linux-gnu, testing in progress.
>
> OK for trunk and branch?

Yes, thank you.

Martin


>
> Thanks,
> Richard.
>
> 2021-05-11  Richard Biener  <rguent...@suse.de>
>
>       PR ipa/100513
>       * ipa-param-manipulation.c
>       (ipa_param_body_adjustments::modify_call_stmt): Avoid
>       altering SSA_NAME_DEF_STMT by adjusting the calls LHS
>       via gimple_call_lhs_ptr.

Reply via email to