From: Richard Guenther <richard.guenther@gmail.com>
To: Aldy Hernandez <aldyh@redhat.com>
Cc: Richard Henderson <rth@redhat.com>,
Torvald Riegel <triegel@redhat.com>,
gcc-patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PR51752] publication safety violations in loop invariant motion pass
Date: Wed, 29 Feb 2012 10:00:00 -0000 [thread overview]
Message-ID: <CAFiYyc3pOAosTe8a8KOWdjH+J6JXQjaXPUr8AJr6C_JDdmHPew@mail.gmail.com> (raw)
In-Reply-To: <4F4D3504.90005@redhat.com>
On Tue, Feb 28, 2012 at 9:11 PM, Aldy Hernandez <aldyh@redhat.com> wrote:
> On 02/28/12 13:12, Richard Henderson wrote:
>>
>> On 02/28/12 09:44, Aldy Hernandez wrote:
>>>
>>> PR middle-end/51752
>>> * gimple.h (gimple_in_transaction): New.
>>> (gimple_set_in_transaction): New.
>>> (struct gimple_statement_base): Add in_transaction field.
>>> * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
>>> transaction loads.
>>> (tree_ssa_lim_initialize): Compute transaction bits.
>>> * tree.h (compute_transaction_bits): Protoize.
>>> * trans-mem.c (tm_region_init): Use the heap to store BB
>>> auxilliary data.
>>> (compute_transaction_bits): New.
>>
>>
>> Looks good. Thanks for your patience.
>>
>>
>> r~
>
>
> Thank you. I have committed the patch.
>
> I will also look into the tree_could_trap business (and PRE and other
> passes) to see if we can divine some context. But I probably won't get to
> it before early next week.
The tree_could_trap business is definitely harder because you lack
a stmt context - this helper takes a 'tree' argument. And it's not enough
to adjust gimple_could_trap as both are used regularly...
So fixing up individual passes is easier - I can only think of PRE being
problematic right now, I am not aware that any other pass moves loads
or stores. So I'd simply pre-compute the stmt bit in PRE and adjust
the
if (gimple_has_volatile_ops (stmt)
|| stmt_could_throw_p (stmt))
continue;
in compute_avail accordingly.
Richard.
> Thanks.
next prev parent reply other threads:[~2012-02-29 9:22 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-23 18:22 Aldy Hernandez
2012-02-23 21:41 ` Aldy Hernandez
2012-02-24 9:51 ` Richard Guenther
2012-02-24 15:20 ` Torvald Riegel
2012-02-24 17:15 ` Aldy Hernandez
2012-02-26 21:58 ` Richard Guenther
2012-02-27 16:53 ` Aldy Hernandez
2012-02-27 17:26 ` Michael Matz
2012-02-27 18:07 ` Aldy Hernandez
2012-02-28 9:49 ` Richard Guenther
2012-02-27 10:02 ` Torvald Riegel
2012-02-27 10:41 ` Richard Guenther
2012-02-27 16:26 ` Aldy Hernandez
2012-02-26 17:39 ` Richard Guenther
2012-02-27 16:44 ` Aldy Hernandez
2012-02-27 17:20 ` Andrew MacLeod
2012-02-28 9:51 ` Richard Guenther
2012-02-28 14:55 ` Andrew MacLeod
2012-02-28 17:10 ` Richard Henderson
2012-02-28 19:12 ` Aldy Hernandez
2012-02-28 20:21 ` Richard Henderson
2012-02-28 20:34 ` Aldy Hernandez
2012-02-29 10:00 ` Richard Guenther [this message]
2012-03-06 18:56 ` Aldy Hernandez
2012-03-06 20:18 ` Richard Guenther
2012-03-06 20:56 ` Torvald Riegel
2012-03-07 9:18 ` Richard Guenther
2012-03-07 15:11 ` Aldy Hernandez
2012-03-09 21:49 ` Aldy Hernandez
2012-03-10 14:15 ` Torvald Riegel
2012-03-12 16:47 ` Aldy Hernandez
2012-03-12 11:57 ` Richard Guenther
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=CAFiYyc3pOAosTe8a8KOWdjH+J6JXQjaXPUr8AJr6C_JDdmHPew@mail.gmail.com \
--to=richard.guenther@gmail.com \
--cc=aldyh@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=rth@redhat.com \
--cc=triegel@redhat.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).