Re: Tree-SSA and POST_INC address mode inompatible in GCC4?

2007-11-05 Thread Paul Brook
On Sunday 04 November 2007, Mark Mitchell wrote: > Kenneth Zadeck wrote: > > 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. > > For code size, it will be profitab

Re: Tree-SSA and POST_INC address mode inompatible in GCC4?

2007-11-04 Thread Mark Mitchell
Kenneth Zadeck wrote: > 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. For code size, it will be profitable everywhere. On ARM, aggressive use of post-increment

Re: Tree-SSA and POST_INC address mode inompatible in GCC4?

2007-11-03 Thread Daniel Berlin
On 11/3/07, Richard Guenther <[EMAIL PROTECTED]> wrote: > On 11/3/07, Zdenek Dvorak <[EMAIL PROTECTED]> wrote: > > 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 requir

Re: Tree-SSA and POST_INC address mode inompatible in GCC4?

2007-11-03 Thread Richard Guenther
On 11/3/07, Zdenek Dvorak <[EMAIL PROTECTED]> wrote: > 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

RE: Tree-SSA and POST_INC address mode inompatible in GCC4?

2007-11-03 Thread Bingfeng Mei
] [mailto:[EMAIL PROTECTED] 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&

Re: Tree-SSA and POST_INC address mode inompatible in GCC4?

2007-11-03 Thread Zdenek Dvorak
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 plac

Re: Tree-SSA and POST_INC address mode inompatible in GCC4?

2007-11-03 Thread J.C. Pizarro
2007/11/3, Kenneth Zadeck <[EMAIL PROTECTED]> wrote: > J.C. Pizarro wrote: > > They need to add an algorithm post-SSA that the code reuse the variables > > converting a_j <- phi(a_i,...) to a_k <- phi(a_k,...). > > > > The algorithms of POST_INC and POST_DEC are very specific, so an above > > gener

Re: Tree-SSA and POST_INC address mode inompatible in GCC4?

2007-11-03 Thread J.C. Pizarro
2007/11/3, J.C. Pizarro <[EMAIL PROTECTED]> wrote: > They need to add an algorithm post-SSA that the code reuse the variables > converting a_j <- phi(a_i,...) to a_k <- phi(a_k,...). I'm sorry, "a_k <- phi(a_k,...)" is invalid due to SSA form definition, but this algorithm need some form to repres

Re: Tree-SSA and POST_INC address mode inompatible in GCC4?

2007-11-03 Thread Kenneth Zadeck
J.C. Pizarro wrote: > 2007/11/3, Kenneth Zadeck wrote: > >> 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 d

Re: Tree-SSA and POST_INC address mode inompatible in GCC4?

2007-11-03 Thread Kenneth Zadeck
Zdenek Dvorak wrote: > 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 >

RE: Tree-SSA and POST_INC address mode inompatible in GCC4?

2007-11-03 Thread J.C. Pizarro
2007/11/3, Kenneth Zadeck wrote: > 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 > profi

Re: Tree-SSA and POST_INC address mode inompatible in GCC4?

2007-11-03 Thread Zdenek Dvorak
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 b

RE: Tree-SSA and POST_INC address mode inompatible in GCC4?

2007-11-03 Thread Kenneth Zadeck
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

RE: Tree-SSA and POST_INC address mode inompatible in GCC4?

2007-11-02 Thread Bingfeng Mei
adhakrishnan [mailto:[EMAIL PROTECTED] Sent: 02 November 2007 12:39 To: Bingfeng Mei Cc: gcc@gcc.gnu.org Subject: Re: Tree-SSA and POST_INC address mode inompatible in GCC4? Hi Bingfeng, On 11/2/07, Bingfeng Mei <[EMAIL PROTECTED]> wrote: > Hello, > > I look at the following the code to

Re: Tree-SSA and POST_INC address mode inompatible in GCC4?

2007-11-02 Thread Ramana Radhakrishnan
Hi Bingfeng, On 11/2/07, Bingfeng Mei <[EMAIL PROTECTED]> wrote: > Hello, > > I look at the following the code to see what is the difference between > GCC4 and GCC3 in using POST_INC address mode (or other similar modes). > > void tst(char * __restrict__ a, char * __restrict__ b){ > *a++ = *b++

Tree-SSA and POST_INC address mode inompatible in GCC4?

2007-11-02 Thread Bingfeng Mei
Hello, I look at the following the code to see what is the difference between GCC4 and GCC3 in using POST_INC address mode (or other similar modes). void tst(char * __restrict__ a, char * __restrict__ b){ *a++ = *b++; *a++ = *b++; *a++ = *b++; *a++ = *b++; *a++ = *b++; *a++ = *b++;