From: "Daniel Berlin" <dberlin@dberlin.org>
To: "Tehila Meyzels" <TEHILA@il.ibm.com>
Cc: gcc-patches@gcc.gnu.org, gcc@gcc.gnu.org,
"Michael Matz" <matz@suse.de>,
trevor_smigiel@playstation.sony.com,
"Revital1 Eres" <ERES@il.ibm.com>,
"Ulrich Weigand" <Ulrich.Weigand@de.ibm.com>,
"Victor Kaplansky" <VICTORK@il.ibm.com>,
dpatel@apple.com
Subject: Re: [RFC] Improve Tree-SSA if-conversion - convergence of efforts
Date: Tue, 31 Jul 2007 15:12:00 -0000 [thread overview]
Message-ID: <4aca3dc20707310800j41fb5cel4ef815bbad42be07@mail.gmail.com> (raw)
In-Reply-To: <OFE09A65AE.6EB97FFD-ONC2257329.004AA175-C2257329.004B47FB@il.ibm.com>
On 7/31/07, Tehila Meyzels <TEHILA@il.ibm.com> wrote:
>
> Hi,
>
> I'd like to bring up on the list a discussion that a bunch of people (most
> of those CC-ed above) started at the GCC Summit:
>
> Lately, there were few efforts, that are not necessarily related to each
> other, but are all relevant to if-conversion.
> Each of them has its own restriction, like a specific control-flow, target
> dependent information, permission to transform speculative loads, etc.
>
> Few patches that I'm aware of are:
> 1. Conditional store sinking, by Michael Matz:
> http://gcc.gnu.org/ml/gcc-patches/2007-04/msg00724.html
>
> 2. If -conversion for multiple IF_THEN_ELSE clauses, by Victor Kaplansky:
> http://gcc.gnu.org/ml/gcc-patches/2006-05/msg00265.html
> Also mentioned here: http://gcc.gnu.org/wiki/AutovectBranchOptimizations
> (2.3.3)
>
> 3. (unconditional) Store sinking (4.1.1 based), by Revital Eres and Victor
> Kaplansky:
> http://gcc.gnu.org/ml/gcc-patches/2006-05/msg00265.html (same patch as
> previous)
> Also mentioned here: http://gcc.gnu.org/wiki/AutovectBranchOptimizations
> (2.3.2)
>
> 4. Conditional load hoisting (4.1.1 based), by myself:
> http://gcc.gnu.org/ml/gcc-patches/2007-07/msg02168.html
>
> 5. Maybe more?
>
> You're welcome to share your/others related works here...
>
>
> I'd like to suggest to converge all these efforts into a single improved
> tree-level if-conversion pass (i.e., on the top of tree-if-conv.c).
> Currently, the tree-level if-conversion pass is quite limited in several
> ways, and mostly with respect to handling of loads/stores (it basically
> doesn't handle them), but not only.
>
> There are several reasons why to store-sinking and load-hoisting should be
> combined with the if-conversion pass:
> 1. Store-sinking/load hoisting effect one another and they both can create
> new opportunities for if-conversion (not only in vectorizable loops, for
> example).
> Currently, load-store motion pass happens too late and thus don't help
> the (tree-ssa) if-converter.
> 2. Store-sinking/load hoisting may have an overhead and may degrade
> performance unless the relevant conditional branch gets if-converted.
I agree with you for conditional stores/loads.
The unconditional store/load stuff, however, is exactly what
tree-ssa-sink was meant to do, and belongs there (this is #3 above).
I'm certainly going to fight tooth and nail against trying to shoehorn
unconditional store sinking into if-conv.
next prev parent reply other threads:[~2007-07-31 15:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-31 14:51 Tehila Meyzels
2007-07-31 15:12 ` Daniel Berlin [this message]
2007-07-31 15:14 ` Michael Matz
2007-08-06 12:16 ` Tehila Meyzels
2007-08-06 14:31 ` Michael Matz
2007-08-01 11:02 ` Tehila Meyzels
2007-08-01 15:27 ` Daniel Berlin
2007-08-01 18:52 ` Ayal Zaks
2007-08-01 19:59 ` Daniel Berlin
2007-09-12 22:10 ` trevor_smigiel
2007-09-13 10:07 ` Richard Guenther
2007-09-13 10:55 ` Michael Matz
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=4aca3dc20707310800j41fb5cel4ef815bbad42be07@mail.gmail.com \
--to=dberlin@dberlin.org \
--cc=ERES@il.ibm.com \
--cc=TEHILA@il.ibm.com \
--cc=Ulrich.Weigand@de.ibm.com \
--cc=VICTORK@il.ibm.com \
--cc=dpatel@apple.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=gcc@gcc.gnu.org \
--cc=matz@suse.de \
--cc=trevor_smigiel@playstation.sony.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).