mkazantsev added inline comments. ================ Comment at: IR/ConstantRange.cpp:963 + if (getSignedMin().isNonNegative()) { + // Upper and Lower of LHS are positive. + min = PosMin; ---------------- positive -> non-negative https://reviews.llvm.org/D40881