mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
Minor code simplification.
llvm-svn: 76521
This commit is contained in:
parent
949c2404a2
commit
a37a433693
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user