summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/ConstantRange.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2019-04-25 10:12:43 +0000
committerFlorian Hahn <flo@fhahn.com>2019-04-25 10:12:43 +0000
commit1038137f14ba07f3acbfdc41384d35e965e0178c (patch)
tree251fdd148a25ec0f7b56d98b1bf8361a2426f7f5 /llvm/lib/IR/ConstantRange.cpp
parent6fae38ec9100f0ad8b2c0352bae90aa64383172b (diff)
downloadbcm5719-llvm-1038137f14ba07f3acbfdc41384d35e965e0178c.tar.gz
bcm5719-llvm-1038137f14ba07f3acbfdc41384d35e965e0178c.zip
[ConstantRange] [a, b) udiv a full range is [0, umax(b)).
Reviewers: nikic, spatel, efriedma Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D60536 llvm-svn: 359180
Diffstat (limited to 'llvm/lib/IR/ConstantRange.cpp')
-rw-r--r--llvm/lib/IR/ConstantRange.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/IR/ConstantRange.cpp b/llvm/lib/IR/ConstantRange.cpp
index 7e2c6727703..af71fd3ac65 100644
--- a/llvm/lib/IR/ConstantRange.cpp
+++ b/llvm/lib/IR/ConstantRange.cpp
@@ -974,8 +974,6 @@ ConstantRange
ConstantRange::udiv(const ConstantRange &RHS) const {
if (isEmptySet() || RHS.isEmptySet() || RHS.getUnsignedMax().isNullValue())
return getEmpty();
- if (RHS.isFullSet())
- return getFull();
APInt Lower = getUnsignedMin().udiv(RHS.getUnsignedMax());
OpenPOWER on IntegriCloud