[Patch, fortran] Inline DOT_PRODUCT

Janne Blomqvist jblomqvi@cc.hut.fi
Mon Feb 27 12:16:00 GMT 2006


On Mon, Feb 27, 2006 at 12:27:12PM +0100, THOMAS Paul Richard 169137 wrote:
> Paolo,
> > 
> > > Have you tested -ftree-vectorize?
> > 
> > No, I haven't and I should.  I will report back tonight.
> > 
> 
> It makes no difference whatsoever - should I be changing the TREEery to benefit from it? 
> 
> On a PIV 2.5GHz, under Cygwin_NT

I'm not that familiar with cygwin, but you might need the -msse2 flag
to tell the compiler that you actually have vector hw available,
otherwise it'll use x87 only. You might want -mfpmath=sse too just to
make sure it doesn't waste time moving stuff between sse and x87 regs
(though I suspect your benchmark should be safe). And with
-ftree-vectorizer-verbose=5 you might get some additional info about
what the vectorizer is doing.

As for the patch itself, now that everything is done inline, can't one
get rid of gfc_resolve_dot_product entirely, or does it still do
something useful?


-- 
Janne Blomqvist
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 185 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060227/7711bad0/attachment.sig>


More information about the Gcc-patches mailing list