[cfe-dev] for loop unrolling

kalyan ponnala ponnala.kalyan at gmail.com
Mon Apr 5 18:39:23 PDT 2010


Hi,

I was trying to step through the code for the following FOR loop. When I
printed out the IR for some program with this FOR loop, it actually unrolled
the loop. I could not see this when I tried to step through the code. Can
someone tell me where to put the breakpoints to see how this loop is
unrolled. And is there any way to tell it not to unroll the code?

for (i=0; i< 10; i++)
{
    a[i] = i ;
}

Thanks.

-- 
Kalyan Ponnala
phone: 8163772059
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100405/61ea00ea/attachment.html>


More information about the cfe-dev mailing list