Displaying 1 result from an estimated 1 matches for "allowexpensivetripcount".
2018 Jan 11
0
question about unrolling loops with convergent instructions
...enough to express this.
if (Convergent)
UP.AllowRemainder = false;
Later in computeUnrollCount, there is
// 2nd priority is unroll count set by pragma.
unsigned PragmaCount = UnrollCountPragmaValue(L);
if (PragmaCount > 0) {
UP.Count = PragmaCount;
UP.Runtime = true;
UP.AllowExpensiveTripCount = true;
UP.Force = true;
if (UP.AllowRemainder &&
getUnrolledLoopSize(LoopSize, UP) < PragmaUnrollThreshold)
return true;
}
Because UP.AllowRemainder is false, the unroll count specified by pragma is ignored. Later on, computeUnrollCount calculates an unroll coun...