public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jeff Law <law@redhat.com>
To: Richard Biener <rguenther@suse.de>, gcc-patches@gcc.gnu.org
Subject: Re: [PATCH][RFC] Consolidate -O3 torture options
Date: Tue, 14 Jul 2015 15:25:00 -0000	[thread overview]
Message-ID: <55A52948.90505@redhat.com> (raw)
In-Reply-To: <alpine.LSU.2.11.1507141353530.9923@zhemvz.fhfr.qr>

On 07/14/2015 05:58 AM, Richard Biener wrote:
>
> The following patch tries to consolidate the -O3 torture testing
> options in the attempt to reduce testing time while not losing
> coverage.
>
> It drops testing of -funroll-all-loops (which nobody should use)
> and retains only one non-default -O3 set of options - namely
> -O3 plus those flags that would be enabled by -fprofile-use.
>
> One should hope for ~20% less time in the C and dg tortures this way.
>
> Didn't look into other tortures to apply the same yet (objc-torture?)
>
> Currently testing on x86_64-unknown-linux-gnu.
>
> For weird flag combinations we do have contributors that test
> them and regularly report bugzillas.
>
> Ok?
>
> Comments?
>
> Thanks,
> Richard.
>
> 2015-07-14  Richard Biener  <rguenther@suse.de>
>
> 	* lib/c-torture.exp (C_TORTURE_OPTIONS): Remove
> 	{ -O3 -fomit-frame-pointer },
> 	{ -O3 -fomit-frame-pointer -funroll-loops } and
> 	{ -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions }
> 	in favor of
> 	{ -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer
> 	  -finline-functions }
> 	* lib/gcc-dg.exp (DG_TORTURE_OPTIONS): Likewise.
I think this is OK -- I've occasionally wondered about the additional 
coverage we get vs the amount of time spent for the various options.

I can't recall specific cases where one of those 3 options would trigger 
a failure, but the two didn't. I'm sure it's happened, but it's just 
common enough to warrant the amount of time we spend testing it.

This patch has the additional benefit that I think we can eliminate 
scanning the source for loops and eliminating the -funroll[-all]-loops 
options.   Hmm, that code may have already been dead... Hmmm.

jeff


  reply	other threads:[~2015-07-14 15:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-14 11:58 Richard Biener
2015-07-14 15:25 ` Jeff Law [this message]
2015-07-15  8:12   ` Richard Biener
2015-07-15 11:52     ` Richard Biener

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=55A52948.90505@redhat.com \
    --to=law@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=rguenther@suse.de \
    /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).