On 6/16/07, Dorit Nuzman <[EMAIL PROTECTED]> wrote:
> H. J. Lu wrote: > > >On Fri, Jun 15, 2007 at 06:21:53PM -0700, Ian Lance Taylor wrote:
> Vectorizer is a big a project and may be we will see more improvements > in future. They promissed implement SLP two years ago and now I see it > happens. It would be nice to see it not only in loops. > Do you have specific examples where SLP helps performance out of loops?
hash calculations. For md5, you can get a 2x performance improvement by straight-line vectorizing it sha1 is about 2-2.5x (This assumes you do good pack/unpack placement using something like lazy code motion) See, for example, http://arctic.org/~dean/crypto/sha1.html (The page is out of date, the technique they explain where they are doing straight line computation of the hash in parallel, is exactly what SLP would provide out of loops)