This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
RE: A prototype loop reverser for the scalarizer
- From: "THOMAS Paul Richard 169137" <Paul dot Richard dot THOMAS at cea dot fr>
- To: "Steven Bosscher" <stevenb dot gcc at gmail dot com>, <fortran at gcc dot gnu dot org>
- Date: Mon, 9 Oct 2006 08:51:52 +0200
- Subject: RE: A prototype loop reverser for the scalarizer
Steven,
That was spot on -
> Actually I misread your generated code.
>
> Do you fold the index expression?
>
As I said, I folded everything except the NEGATE_EXPR; do this collapsed
down the expression do be identical to the handcrafted version; it even
executes in the same amount of time!
I just need to tidy up the dependency analysis (As it stands the patch
breaks the likes of: x(2:N-1) = x(1:N-2)*x(3:N) because it sees this
assignment as a candidate for loop reversal, rather than for a temporary)
before submitting.
Thanks
Paul