1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

Minor code simplification.

llvm-svn: 76521
This commit is contained in:
Dan Gohman 2009-07-21 00:37:45 +00:00
parent 949c2404a2
commit a37a433693

View File

@ -2741,7 +2741,7 @@ ScalarEvolution::getSignedRange(const SCEV *S) {
APInt Max = APIntOps::smax(StartRange.getSignedMax(),
EndRange.getSignedMax());
if (Min.isMinSignedValue() && Max.isMaxSignedValue())
return ConstantRange(Min.getBitWidth(), /*isFullSet=*/true);
return FullSet;
return ConstantRange(Min, Max+1);
}
}