This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [FORTRAN] Avoid allocating unused WHERE masks
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: roger at eyesopen dot com (Roger Sayle)
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Mon, 6 Feb 2006 11:43:44 -0500 (EST)
- Subject: Re: [FORTRAN] Avoid allocating unused WHERE masks
> i.e. we always allocate and populate two complementary masks, even
> when the second one (mask2 above) is completely unused. Unfortunately,
> GCC's tree-level and RTL optimizers are currently unable to optimize
> away this second allocation, meaning that simple WHERE loops allocate
> twice as much memory as they need.
This is optimization is recorded as PR 19831.
Thanks,
Andrew Pinski