Re: [PATCH] cplxlower: Avoid a transform when looking at a default definition

2020-10-19 Thread Martin Jambor
Hi, On Sat, Oct 17 2020, Richard Biener wrote: > On October 16, 2020 8:46:39 PM GMT+02:00, Martin Jambor > wrote: >>Hi, >> >>in PR 97456, IPA-SRA triggers a bug in tree-complex.c where it >>converts: >> >> >> a$_M_value_21 = COMPLEX_EXPR ; >> >>(where ISRA.18 is IPA-SRA created PARM_DECL with

Re: [PATCH] cplxlower: Avoid a transform when looking at a default definition

2020-10-17 Thread Richard Biener
On October 16, 2020 8:46:39 PM GMT+02:00, Martin Jambor wrote: >Hi, > >in PR 97456, IPA-SRA triggers a bug in tree-complex.c where it >converts: > > > a$_M_value_21 = COMPLEX_EXPR ; > >(where ISRA.18 is IPA-SRA created PARM_DECL with DECL_IGNORED_P set, >which is why it only happens with IPA-SR

[PATCH] cplxlower: Avoid a transform when looking at a default definition

2020-10-16 Thread Martin Jambor
Hi, in PR 97456, IPA-SRA triggers a bug in tree-complex.c where it converts: a$_M_value_21 = COMPLEX_EXPR ; (where ISRA.18 is IPA-SRA created PARM_DECL with DECL_IGNORED_P set, which is why it only happens with IPA-SRA) into: a$_M_value_21 = COMPLEX_EXPR ; i.e. it replaces two uses