From: Andrew MacLeod <amacleod@redhat.com>
To: Richard Guenther <richard.guenther@gmail.com>
Cc: Aldy Hernandez <aldyh@redhat.com>,
Torvald Riegel <triegel@redhat.com>,
Richard Henderson <rth@redhat.com>,
gcc-patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PR51752] publication safety violations in loop invariant motion pass
Date: Tue, 28 Feb 2012 14:55:00 -0000 [thread overview]
Message-ID: <4F4CE2BD.3010303@redhat.com> (raw)
In-Reply-To: <CAFiYyc1Ac9PZfDLvhk0OaFooiTrw_tYHyC4xyDegYcz-X-QfGw@mail.gmail.com>
On 02/28/2012 04:39 AM, Richard Guenther wrote:
> On Mon, Feb 27, 2012 at 5:44 PM, Andrew MacLeod<amacleod@redhat.com> wrote:
> I t would seem appropriate to me that in the future, perhaps the CFG could
> have a flag set for any basic block which is in a transaction... This would
> make it pretty trivial at all times to tell if a statement is part of a
> transaction or not. It seems like the process of CFG construction/updating
> should be able to maintain that info for little cost. (ie, I'd guess it's
> already making the traversals requires to collect that info)
>
> It would certainly be convenient :-)
> That would sound easier than maintaining the flag on the stmt. OTOH we
> already maintain on-the-side EH tables, so it can't be that big of a problem.
>
> What do we do if we move stmts inside a transaction though? Do they
> magically become part of it and thus we cannot move them out again?
well, I think by definition if you move a statement into a basic block
of a transaction it becomes a part of the transaction. I believe
transactions are block based... the entire block is in f a transaction,
or not. Moving a statement out of a transaction would be as easy as
moving it in... just change the block it is in.
> If you want to fix this issue for 4.7, add the gimple flag and an on-demand
> compute helper and check the flag in PRE/LIM.
>
>
yes, a targeted approach is required for 4.7. I just wanted to plant
the seed while the discussion was ongoing.
Andrew
next prev parent reply other threads:[~2012-02-28 14:21 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 [this message]
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
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=4F4CE2BD.3010303@redhat.com \
--to=amacleod@redhat.com \
--cc=aldyh@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=richard.guenther@gmail.com \
--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).