[rfc] transfering number of iterations from trees to rtl (PR 32283)

Mark Mitchell mark@codesourcery.com
Wed Dec 26 19:11:00 GMT 2007


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



More information about the Gcc-patches mailing list