This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [rfc] transfering number of iterations from trees to rtl (PR 32283)
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Zdenek Dvorak <rakdver at kam dot mff dot cuni dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 26 Dec 2007 10:49:18 -0800
- Subject: Re: [rfc] transfering number of iterations from trees to rtl (PR 32283)
- References: <20071216202843.GA30341@kam.mff.cuni.cz>
Zdenek Dvorak wrote:
> A quicker, safer and dirtier way is to somehow record the information in
> the IR on trees, and pick it up on RTL. For example, for the loop above
> we could emit the following code:
>
> k = a + 16 * n;
> builtin_loop_start(1, n);
> for (p = a; p != k; p += 16)
> {
> builtin_loop_step(1);
> *p = 0;
> }
FWIW, and without being an expert in this part of the compiler, this
seems reasonable to me.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713