diff --git a/flang/include/flang/Common/uint128.h b/flang/include/flang/Common/uint128.h --- a/flang/include/flang/Common/uint128.h +++ b/flang/include/flang/Common/uint128.h @@ -165,7 +165,8 @@ bits <<= 1; quotient <<= 1; if (numerator >= that) { - ++quotient; + // Optimized for ++quotient here + quotient |= 1; numerator -= that; } }