mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
[ConstantRange] improve my previous patch per Nick suggestion
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193795 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1d28917dc3
commit
7de1b3bd45
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user