From: Jeff Law <law@redhat.com>
To: Richard Biener <richard.guenther@gmail.com>
Cc: gcc-patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH][committed][PR tree-optimization/82123] 01/06 Do nothing in EVRP analyzer is not optimizing
Date: Mon, 26 Feb 2018 19:48:00 -0000 [thread overview]
Message-ID: <05910f8f-97d2-99fa-5236-c0bc04843817@redhat.com> (raw)
In-Reply-To: <CAFiYyc1ZT6omVGVOr7AN-YGT+aZNJG-u6duhK_nGkz2KPfcGhg@mail.gmail.com>
On 02/26/2018 05:27 AM, Richard Biener wrote:
> On Tue, Feb 20, 2018 at 7:49 PM, Jeff Law <law@redhat.com> wrote:
>> This is part #1 of the patches to fix 81592/82123. The changes aren't
>> particularly large or invasive, but I already had them broken down
>> internally into distinct chunks, so I'm going to send them out that way.
>>
>> This patch allows the EVRP range analyzer to be safely called even when
>> not optimizing. It does no analysis in that case. This prevents
>> problems if we were to ask for sprintf warnings but not have the
>> optimizer enabled.
>
> I don't really understand the issue -- when called from sprintf warnings
> the evrp analyzer shouldn't "optimize" anything, it only does analysis.
> How is that ever a problem when not optimizing?
When not optimizing we can have _DECL nodes showing in in places we
don't expect them. We also don't consistently canonicalize conditions.
There may be other issues as well, I didn't dig deeply into all of them.
This causes all kinds of grief when we try to analyze statements.
Ideally we'll fix this stuff in gcc-9. Until then it seems far better
to have the analyzer protect itself from this cruft than forcing every
consumer to guard calls into the analyzer.
Jeff
prev parent reply other threads:[~2018-02-26 19:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-20 18:49 Jeff Law
2018-02-26 12:27 ` Richard Biener
2018-02-26 19:48 ` Jeff Law [this message]
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=05910f8f-97d2-99fa-5236-c0bc04843817@redhat.com \
--to=law@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=richard.guenther@gmail.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).