Lines Matching refs:loopInfo
52 LoopUnrollInfo& loopInfo) { in get_es2_loop_unroll_info() argument
72 if (!ConstantFolder::GetConstantValue(*initDecl.value(), &loopInfo.fStart)) { in get_es2_loop_unroll_info()
76 loopInfo.fIndex = &initDecl.var(); in get_es2_loop_unroll_info()
80 expr->as<VariableReference>().variable() == loopInfo.fIndex; in get_es2_loop_unroll_info()
131 if (!ConstantFolder::GetConstantValue(*next.right(), &loopInfo.fDelta)) { in get_es2_loop_unroll_info()
136 case Token::Kind::TK_MINUSEQ: loopInfo.fDelta = -loopInfo.fDelta; break; in get_es2_loop_unroll_info()
147 case Token::Kind::TK_PLUSPLUS: loopInfo.fDelta = 1; break; in get_es2_loop_unroll_info()
148 case Token::Kind::TK_MINUSMINUS: loopInfo.fDelta = -1; break; in get_es2_loop_unroll_info()
159 case Token::Kind::TK_PLUSPLUS: loopInfo.fDelta = 1; break; in get_es2_loop_unroll_info()
160 case Token::Kind::TK_MINUSMINUS: loopInfo.fDelta = -1; break; in get_es2_loop_unroll_info()
178 loopInfo.fCount = 0; in get_es2_loop_unroll_info()
182 loopInfo.fCount = calculate_count(loopInfo.fStart, loopEnd, loopInfo.fDelta, in get_es2_loop_unroll_info()
187 loopInfo.fCount = calculate_count(loopInfo.fStart, loopEnd, loopInfo.fDelta, in get_es2_loop_unroll_info()
192 loopInfo.fCount = calculate_count(loopInfo.fStart, loopEnd, loopInfo.fDelta, in get_es2_loop_unroll_info()
197 loopInfo.fCount = calculate_count(loopInfo.fStart, loopEnd, loopInfo.fDelta, in get_es2_loop_unroll_info()
202 float iterations = sk_ieee_double_divide(loopEnd - loopInfo.fStart, loopInfo.fDelta); in get_es2_loop_unroll_info()
203 loopInfo.fCount = std::ceil(iterations); in get_es2_loop_unroll_info()
204 if (loopInfo.fCount < 0 || loopInfo.fCount != iterations || in get_es2_loop_unroll_info()
207 loopInfo.fCount = kLoopTerminationLimit; in get_es2_loop_unroll_info()
212 if (loopInfo.fStart == loopEnd) { in get_es2_loop_unroll_info()
214 if (loopInfo.fDelta) { in get_es2_loop_unroll_info()
216 loopInfo.fCount = 1; in get_es2_loop_unroll_info()
219 loopInfo.fCount = kLoopTerminationLimit; in get_es2_loop_unroll_info()
223 loopInfo.fCount = 0; in get_es2_loop_unroll_info()
230 SkASSERT(loopInfo.fCount >= 0); in get_es2_loop_unroll_info()
231 if (loopInfo.fCount >= kLoopTerminationLimit) { in get_es2_loop_unroll_info()