From: "Bingfeng Mei" <bmei@broadcom.com>
To: "Zdenek Dvorak" <rakdver@kam.mff.cuni.cz>,
"Kenneth Zadeck" <zadeck@naturalbridge.com>
Cc: gcc@gcc.gnu.org
Subject: RE: Tree-SSA and POST_INC address mode inompatible in GCC4?
Date: Sat, 03 Nov 2007 16:23:00 -0000 [thread overview]
Message-ID: <2E073B3ABB3F664DBA1D1C4D5FB47EF405C985B9@NT-IRVA-0752.brcm.ad.broadcom.com> (raw)
In-Reply-To: <20071103152728.GA14818@kam.mff.cuni.cz>
Yes, that is the better way to generate code than using POST_INC since
it eliminates unnecessary dependency. Which version used to do this?
Where should it be done? I am thinking one of those copy propagation
passes. Am I right?
Cheers,
Bingfeng
-----Original Message-----
From: gcc-owner@gcc.gnu.org [mailto:gcc-owner@gcc.gnu.org] On Behalf Of
Zdenek Dvorak
Sent: 03 November 2007 15:27
To: Kenneth Zadeck
Cc: gcc@gcc.gnu.org
Subject: Re: Tree-SSA and POST_INC address mode inompatible in GCC4?
Hi,
> >> I believe that this is something new and is most likely fallout
from
> >> diego's reworking of the tree to rtl converter.
> >>
> >> To fix this will require a round of copy propagation, most likely
in
> >> concert with some induction variable detection, since the most
> >> profitable place for this will be in loops.
> >>
> >> I wonder if any of this effects the rtl level induction variable
> >> discovery?
> >>
> >
> > it should not (iv analysis is able to deal with this kind of ivs).
> >
> does the iv analysis canonize them in a way that we should perhaps
> consider moving the auto-inc detection after the iv analysis?
no, iv analysis does not change the program; also, since the code in
this particular example is not in any loop, iv analysis is somewhat
irrelevant for it.
Btw. I would have actually expected this code to be folded to
*a_3(D) = D.1543_2;
a_4 = a_3(D) + 1;
b_5 = b_1(D) + 1;
D.1543_6 = *b_5;
*a_4 = D.1543_6;
a_7 = a_3 + 2;
b_8 = b_1 + 2;
D.1543_9 = *b_8;
*a_7 = D.1543_9;
a_10 = a_3 + 3;
b_11 = b_1 + 3;
D.1543_12 = *b_11;
*a_10 = D.1543_12;
a_13 = a_3 + 4;
b_14 = b_1 + 4;
D.1543_15 = *b_14;
*a_13 = D.1543_15;
etc.; I am fairly sure we used to do this.
Zdenek
next prev parent reply other threads:[~2007-11-03 16:23 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-02 12:24 Bingfeng Mei
2007-11-02 12:38 ` Ramana Radhakrishnan
2007-11-02 14:34 ` Bingfeng Mei
2007-11-03 13:52 ` Kenneth Zadeck
2007-11-03 14:25 ` Zdenek Dvorak
2007-11-03 14:52 ` Kenneth Zadeck
2007-11-03 15:27 ` Zdenek Dvorak
2007-11-03 16:23 ` Bingfeng Mei [this message]
2007-11-03 16:37 ` Richard Guenther
2007-11-04 3:13 ` Daniel Berlin
2007-11-04 23:51 ` Mark Mitchell
2007-11-05 19:30 ` Paul Brook
2007-11-03 14:47 J.C. Pizarro
2007-11-03 14:55 ` Kenneth Zadeck
2007-11-03 14:59 ` J.C. Pizarro
2007-11-03 14:55 ` J.C. Pizarro
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=2E073B3ABB3F664DBA1D1C4D5FB47EF405C985B9@NT-IRVA-0752.brcm.ad.broadcom.com \
--to=bmei@broadcom.com \
--cc=gcc@gcc.gnu.org \
--cc=rakdver@kam.mff.cuni.cz \
--cc=zadeck@naturalbridge.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).