[AArch64 NEON] Expand vector for UDIV/SDIV/UREM/SREM/FREM as neon doesn't support...
[oota-llvm.git] / lib / Support / ConstantRange.cpp
index e3b43ed6df6178dd614eb921ca715b98a96172ad..265b6e96a74698486da4881795f8d986bc985faf 100644 (file)
@@ -447,7 +447,7 @@ ConstantRange ConstantRange::signExtend(uint32_t DstTySize) const {
   assert(SrcTySize < DstTySize && "Not a value extension");
 
   // special case: [X, INT_MIN) -- not really wrapping around
-  if (Upper == APInt::getHighBitsSet(SrcTySize, 1))
+  if (Upper.isMinSignedValue())
     return ConstantRange(Lower.sext(DstTySize), Upper.zext(DstTySize));
 
   if (isFullSet() || isSignWrappedSet()) {