Displaying 1 result from an estimated 1 matches for "pragmaunrollthreshold".
2018 Jan 11
0
question about unrolling loops with convergent instructions
...oll 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 count of 512.
Is this a bug? Essentially, this disables unroll count specified by pragma for any loops containing convergent operations, e...