search for: numofiterations

Displaying 4 results from an estimated 4 matches for "numofiterations".

2012 Feb 27
3
[LLVMdev] How to unroll loop with non-constant boundary
Dear LLVM, Consider two loops with one interation - First with constant lower bound, second with usual non-constant lower bound: int main(int argc, char ** argv) { int numOfIterations= 1; int stride=1; int lowerBound = 1000; - 1st | int lowerBound = argc; - 2nd int upperBound = lowerBound + (numOfIterations - 1)*stride; int i = lowerBound; int s = 0; while(i <= upperBound) { s += i; i++; }...
2012 Feb 27
2
[LLVMdev] How to unroll loop with non-constant boundary
...17:13, Николай Лихогруд wrote: > >> Dear LLVM, >> >>     Consider two loops with one interation - >>     First with constant lower bound, second with usual non-constant lower bound: >> >>     int main(int argc, char ** argv) >>     { >>         int numOfIterations= 1; >>         int stride=1; >>         int lowerBound = 1000; - 1st | int lowerBound = argc; - 2nd >>         int upperBound = lowerBound + (numOfIterations - 1)*stride; >> >>         int i = lowerBound; >> >>         int s = 0; >>         while(i &l...
2012 Feb 27
0
[LLVMdev] How to unroll loop with non-constant boundary
On 27.02.2012, at 17:13, Николай Лихогруд wrote: > Dear LLVM, > > Consider two loops with one interation - > First with constant lower bound, second with usual non-constant lower bound: > > int main(int argc, char ** argv) > { > int numOfIterations= 1; > int stride=1; > int lowerBound = 1000; - 1st | int lowerBound = argc; - 2nd > int upperBound = lowerBound + (numOfIterations - 1)*stride; > > int i = lowerBound; > > int s = 0; > while(i <= upperBound) >...
2012 Feb 27
0
[LLVMdev] How to unroll loop with non-constant boundary
...>>> Dear LLVM, >>> >>> Consider two loops with one interation - >>> First with constant lower bound, second with usual non-constant lower bound: >>> >>> int main(int argc, char ** argv) >>> { >>> int numOfIterations= 1; >>> int stride=1; >>> int lowerBound = 1000; - 1st | int lowerBound = argc; - 2nd >>> int upperBound = lowerBound + (numOfIterations - 1)*stride; >>> >>> int i = lowerBound; >>> >>> int s =...