mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
[ConstantRange] improve my previous patch per Nick suggestion
llvm-svn: 193795
This commit is contained in:
parent
aea5ba449f
commit
e6a672c118
@ -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