summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/ConstantRange.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/IR/ConstantRange.cpp')
-rw-r--r--llvm/lib/IR/ConstantRange.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/lib/IR/ConstantRange.cpp b/llvm/lib/IR/ConstantRange.cpp
index a2eb1517f57..417b752d1a2 100644
--- a/llvm/lib/IR/ConstantRange.cpp
+++ b/llvm/lib/IR/ConstantRange.cpp
@@ -127,18 +127,6 @@ ConstantRange ConstantRange::makeSatisfyingICmpRegion(CmpInst::Predicate Pred,
.inverse();
}
-ConstantRange ConstantRange::makeExactICmpRegion(CmpInst::Predicate Pred,
- const APInt &C) {
- // Computes the exact range that is equal to both the constant ranges returned
- // by makeAllowedICmpRegion and makeSatisfyingICmpRegion. This is always true
- // when RHS is a singleton such as an APInt and so the assert is valid.
- // However for non-singleton RHS, for example ult [2,5) makeAllowedICmpRegion
- // returns [0,4) but makeSatisfyICmpRegion returns [0,2).
- //
- assert(makeAllowedICmpRegion(Pred, C) == makeSatisfyingICmpRegion(Pred, C));
- return makeAllowedICmpRegion(Pred, C);
-}
-
ConstantRange
ConstantRange::makeGuaranteedNoWrapRegion(Instruction::BinaryOps BinOp,
const ConstantRange &Other,
OpenPOWER on IntegriCloud