mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 23:24:34 +00:00
Minor code simplification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76521 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2741,7 +2741,7 @@ ScalarEvolution::getSignedRange(const SCEV *S) {
|
|||||||
APInt Max = APIntOps::smax(StartRange.getSignedMax(),
|
APInt Max = APIntOps::smax(StartRange.getSignedMax(),
|
||||||
EndRange.getSignedMax());
|
EndRange.getSignedMax());
|
||||||
if (Min.isMinSignedValue() && Max.isMaxSignedValue())
|
if (Min.isMinSignedValue() && Max.isMaxSignedValue())
|
||||||
return ConstantRange(Min.getBitWidth(), /*isFullSet=*/true);
|
return FullSet;
|
||||||
return ConstantRange(Min, Max+1);
|
return ConstantRange(Min, Max+1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user