This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/45159] Unnecessary temporaries
- From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 01 Feb 2013 18:16:30 +0000
- Subject: [Bug fortran/45159] Unnecessary temporaries
- Auto-submitted: auto-generated
- References: <bug-45159-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45159
--- Comment #27 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2013-02-01 18:16:30 UTC ---
To allow expressions like
a(n:2*n:2) = a(n+1:2*n+1:2)
to be optimized, I will try to write a function which calculates the difference
between two gfc_expr() for easy cases. This could also help in other cases,
such as determining string lenghts for expressions like c(n:n+2).