This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]