Re: [PATCH] ipa-sra: Fix address escape case when detecting Fortran descriptors

2022-12-14 Thread Jan Hubicka via Gcc-patches
> Hi, > > The discussion about scan_expr_access in ipa-sra.cc brought my > attention to a missing case of handling an ADDR_EXPR. As the added > testcase shows, the heuristics which looks for parameters which are > local variables that are only written to and passed by reference in > calls can mis

[PATCH] ipa-sra: Fix address escape case when detecting Fortran descriptors

2022-12-14 Thread Martin Jambor
Hi, The discussion about scan_expr_access in ipa-sra.cc brought my attention to a missing case of handling an ADDR_EXPR. As the added testcase shows, the heuristics which looks for parameters which are local variables that are only written to and passed by reference in calls can miss a case where