From: Will Schmidt <will_schmidt@vnet.ibm.com>
To: Segher Boessenkool <segher@kernel.crashing.org>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>,
Richard Biener <richard.guenther@gmail.com>,
Bill Schmidt <wschmidt@linux.vnet.ibm.com>,
David Edelsohn <dje.gcc@gmail.com>
Subject: Re: [PATCH, rs6000] enable early debug and disable switch for gimple folding
Date: Wed, 09 Aug 2017 14:40:00 -0000 [thread overview]
Message-ID: <1502289600.6577.40.camel@brimstone.rchland.ibm.com> (raw)
In-Reply-To: <20170808223143.GM13471@gate.crashing.org>
On Tue, 2017-08-08 at 17:31 -0500, Segher Boessenkool wrote:
> Hi!
>
> On Tue, Aug 08, 2017 at 04:14:56PM -0500, Will Schmidt wrote:
> > * config/rs6000/rs6000.c: rs6000_option_override_internal() Add blurb
> > to indicate when early gimple folding has been disabled.
>
> * config/rs6000/rs6000.c (rs6000_option_override_internal): ...
>
>
> > rs6000_gimple_fold_builtin(): Add debug content.
>
> (rs6000_gimple_fold_builtin): ...
>
> > @@ -16157,10 +16161,26 @@ rs6000_gimple_fold_builtin (gimple_stmt_iterator *gsi)
> > gcc_checking_assert (fndecl && DECL_BUILT_IN_CLASS (fndecl) == BUILT_IN_MD);
> > enum rs6000_builtins fn_code
> > = (enum rs6000_builtins) DECL_FUNCTION_CODE (fndecl);
> > tree arg0, arg1, lhs;
> >
> > + size_t uns_fncode = (size_t)fn_code;
>
> Space after cast. More of this in the rest of the patch.
>
> > + if (TARGET_DEBUG_BUILTIN)
> > + {
> > + fprintf (stderr, "rs6000_gimple_fold_builtin %d %s %s \n",
> > + fn_code,fn_name1,fn_name2);
>
> No space before \n, space after commas.
>
> > + if (rs6000_gimple_folding_disable)
> > + return false;
>
> One space indented too many there.
>
> > diff --git a/gcc/config/rs6000/rs6000.opt b/gcc/config/rs6000/rs6000.opt
> > index e94aa07..4372b00 100644
> > --- a/gcc/config/rs6000/rs6000.opt
> > +++ b/gcc/config/rs6000/rs6000.opt
> > @@ -146,10 +146,14 @@ Generate AltiVec instructions using little-endian element order.
> >
> > maltivec=be
> > Target Report RejectNegative Var(rs6000_altivec_element_order, 2)
> > Generate AltiVec instructions using big-endian element order.
> >
> > +mgimple-folding=off
> > +Target Report RejectNegative Var(rs6000_gimple_folding_disable, 1)
> > +Disable early gimple folding of builtins.
>
> Please use -mgimple-folding instead, or better, -mfold-gimple, along
> with its no- variant? So no RejectNegative.
>
> It's probably easier to read if the internal var is the positive
> version, too?
Thanks for the review. (v2) incoming momentarily.
>
>
> Segher
>
next prev parent reply other threads:[~2017-08-09 14:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-08 21:15 Will Schmidt
2017-08-08 22:31 ` Segher Boessenkool
2017-08-09 14:40 ` Will Schmidt [this message]
2017-08-09 14:39 ` [PATCH, rs6000] (v2) " Will Schmidt
2017-08-09 21:06 ` Segher Boessenkool
2017-08-10 0:04 ` Segher Boessenkool
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=1502289600.6577.40.camel@brimstone.rchland.ibm.com \
--to=will_schmidt@vnet.ibm.com \
--cc=dje.gcc@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=richard.guenther@gmail.com \
--cc=segher@kernel.crashing.org \
--cc=wschmidt@linux.vnet.ibm.com \
/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).