This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [Patch, fortran] Inline DOT_PRODUCT


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

Attachment: pgp00000.pgp
Description: PGP signature


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