llvm.org GIT mirror llvm / b4a39f7
[APInt] Simplify a for loop initialization based on the fact that 'n' is known to be 1 by an earlier 'if'. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303120 91177308-0d34-0410-b5e6-96231b3b80d8 Craig Topper 3 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
14751475 if (n == 1) {
14761476 uint32_t divisor = V[0];
14771477 uint32_t remainder = 0;
1478 for (int i = m+n-1; i >= 0; i--) {
1478 for (int i = m; i >= 0; i--) {
14791479 uint64_t partial_dividend = Make_64(remainder, U[i]);
14801480 if (partial_dividend == 0) {
14811481 Q[i] = 0;