Displaying 1 result from an estimated 1 matches for "aa1edcca".
2010 Apr 21
1
[LLVMdev] determining the number of iteration of a loop
In your example the the number of iterations is known -- it is N. It
is not known at compile time, but it's known at run-time before you
enter the loop. So you can do transforms like if( N < threshold ) copy
of loop optimized for small iterations count; else copy of loop
optimized for large iterations count;
But you are right, in general, the number of iterations in unknown. I
think Khaled