gcc-patches@gcc.gnu.org
[Top] [All Lists]

Re: [PATCH] Fix PR18754: add early loop pass, 2nd try

Subject: Re: [PATCH] Fix PR18754: add early loop pass, 2nd try
From: Zdenek Dvorak
Date: Thu, 20 Jan 2005 19:33:59 +0100
Hello,

> (Richard Guenther wrote in
> http://gcc.gnu.org/ml/gcc-patches/2005-01/msg01308.html:)
> > I did experiments with scheduling a second SRA pass after
> > loop optimization, but that doesn't help ivopts - we'd need
> > another loop pass after the second SRA this way.
> 
> Maybe adding this extra ivopts pass isn't that bad? If that would allow
> scheduling vectorization then loop-unrolling then SRA I think that would be
> best.

extra ivopts pass is not a good idea (ivopts are quite slow just now).

The right fix seems to be to add the second SRA pass in the middle of loop
optimizations (just immediately after cunroll).  You would also need to
schedule constant propagation pass there (which should just work)
and preferably also cfg_cleanup (the variation from tcb branch that
preserves loop structures).

Zdenek

<Prev in Thread] Current Thread [Next in Thread>