public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Tim Prince <n8tm@aol.com>
To: pinskia@gmail.com
Cc: tprince@computer.org, FX Coudert <fxcoudert@gmail.com>,
	  gfortran list <fortran@gcc.gnu.org>,
	 gcc-patches list <gcc-patches@gcc.gnu.org>
Subject: Re: [gfortran,patch] Make MIN and MAX handle NaNs correctly (PR32048)
Date: Sun, 29 Jul 2007 11:08:00 -0000	[thread overview]
Message-ID: <46AC7166.3070200@aol.com> (raw)
In-Reply-To: <de8d50360707281135i5b04e9e9q8243b2ae4624fc5b@mail.gmail.com>

pinskia@gmail.com wrote:
> On 7/28/07, Tim Prince <tprince@myrealbox.com> wrote:
>> FX Coudert wrote:
>> Does this affect minval() and maxval() intrinsics?  Up to now, they
>> performed as well as equivalent C code with icpc, better than g++, but
>> not as well as ifort.  I suppose it removes the prospect of vectorizing
>> code with min() and max(), unless that will be enabled with -ffast-math.
> 
> Actually the G++ code should be better on the trunk than before.  If
> it is not, can you file a new bug?
> 

I did find several cases where g++ x86-64 performance improved greatly 
in the last month, but this is not one of them.
I didn't find anything clear to complain about.  g++ is generating a lot 
of useless (on Core 2) p2align, but that does not correlate with 
performance.  g++ uses minps memory to register operations, while 
gfortran loads each operand first.  This looks like a way for g++ to 
favor reduced code size over performance (somewhat contradictory, after 
consuming space with p2align).  It might be better to unroll less and 
pre-load the operands.  I didn't think this is worth a PR, when I have 
plenty of long-standing PRs.

  reply	other threads:[~2007-07-29 10:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-28 15:03 FX Coudert
2007-07-28 18:26 ` Jerry DeLisle
2007-07-28 18:53 ` Tim Prince
2007-07-28 20:15   ` Andrew Pinski
2007-07-29 11:08     ` Tim Prince [this message]
2007-07-28 20:26   ` FX Coudert
2007-07-29 10:49     ` Paul Thomas
2007-07-29 13:36       ` FX Coudert
2007-08-06 12:18         ` François-Xavier Coudert
2007-08-06 12:32           ` Andrew Pinski
2007-08-03 21:32       ` FX Coudert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46AC7166.3070200@aol.com \
    --to=n8tm@aol.com \
    --cc=fortran@gcc.gnu.org \
    --cc=fxcoudert@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=pinskia@gmail.com \
    --cc=tprince@computer.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).