This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]