Hi Prathamesh!

Am 15.07.24 um 15:07 schrieb Prathamesh Kulkarni:
-----Original Message-----
From: Harald Anlauf <anl...@gmx.de>
I agree that it is reasonable to defer the handling of arrays as
components of derived types, and recommend to do the following:

- replace "&& gfc_is_simply_contiguous (expr, true, false))" in your
    last patch by "&& gfc_is_simply_contiguous (expr, false, false))",
    as that would also allow to treat

    z(:,::1,:) = 0

    as contiguous if z is allocatable or a contiguous pointer.

- open a PR in bugzilla to track the missed-optimization for
    the cases we discussed here, and link the discussion in the ML.
Done: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115935

Your patch then will be OK for mainline.
Thanks, does the attached version look OK ?
Bootstrapped+tested on aarch64-linux-gnu, x86_64-linux-gnu.

This is now OK.

Thanks for the patch!

Harald

Thanks,
Prathamesh


Reply via email to