From 1038137f14ba07f3acbfdc41384d35e965e0178c Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Thu, 25 Apr 2019 10:12:43 +0000 Subject: [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 --- llvm/lib/IR/ConstantRange.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'llvm/lib/IR/ConstantRange.cpp') 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()); -- cgit v1.2.3