search for: getiterationcount

Displaying 2 results from an estimated 2 matches for "getiterationcount".

2009 Feb 24
2
[LLVMdev] Detecting counted loops
I need to be able to detect a well-behaved loop. (i.e one where exp1 assigns a value to an int i, exp2 compares i with a loop constant, exp3 adjusts i by a loop constant, and the inner block has no assignments to i.) I need this because in Sun's Java VM garbage collection only takes place at safepoints, so a potentially unbounded loop must call safepoint() some time. However, safepoints are
2020 Jan 03
10
Writing loop transformations on the right representation is more productive
...d2 are consecutive sibling loops // Bail out on untypical things (atomic accesses, exceptions, convergent instructions, ...) if (!Red1->isSimple() || !Red2->isSimple()) return; // Consistency checks (can be less less strict by moving conditions into the fused body). if (Red1->getIterationCount() != Red2->getIterationCount()) return; if (Red1->getPredicate() != Red2->getPredicate()) return; // Create new loop hierarchy with fused loops. GreenFused = new GreenLoop({ Red1->getGreen(), Red2->getGreen() }, Red1...