projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[AArch64 NEON] Expand vector for UDIV/SDIV/UREM/SREM/FREM as neon doesn't support...
[oota-llvm.git]
/
lib
/
Support
/
ConstantRange.cpp
diff --git
a/lib/Support/ConstantRange.cpp
b/lib/Support/ConstantRange.cpp
index e3b43ed6df6178dd614eb921ca715b98a96172ad..265b6e96a74698486da4881795f8d986bc985faf 100644
(file)
--- a/
lib/Support/ConstantRange.cpp
+++ b/
lib/Support/ConstantRange.cpp
@@
-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
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()) {
return ConstantRange(Lower.sext(DstTySize), Upper.zext(DstTySize));
if (isFullSet() || isSignWrappedSet()) {