summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2016-12-06 03:34:33 +0000
committerPhilip Reames <listmail@philipreames.com>2016-12-06 03:34:33 +0000
commitb486c49ff54e85dc7c2978419e2a718de5d8a1cf (patch)
treeac0b8ed47ca2deb66a4ca02b1cc7ac0d6d1aacf8
parent05c435e3a4caf261f978c588aeee5945d4e6bbd1 (diff)
downloadbcm5719-llvm-b486c49ff54e85dc7c2978419e2a718de5d8a1cf.tar.gz
bcm5719-llvm-b486c49ff54e85dc7c2978419e2a718de5d8a1cf.zip
[LVI] Remove dead code in mergeIn
Integers are expressed in the lattice via constant ranges. They can never be represented by constants or not-constants; those are reserved for non-integer types. This code has been dead for literaly years. llvm-svn: 288767
-rw-r--r--llvm/lib/Analysis/LazyValueInfo.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/llvm/lib/Analysis/LazyValueInfo.cpp b/llvm/lib/Analysis/LazyValueInfo.cpp
index 6bce7c6d35e..82478b76848 100644
--- a/llvm/lib/Analysis/LazyValueInfo.cpp
+++ b/llvm/lib/Analysis/LazyValueInfo.cpp
@@ -228,15 +228,6 @@ public:
if (RHS.isNotConstant()) {
if (Val == RHS.Val)
return markOverdefined();
-
- // Unless we can prove that the two Constants are different, we must
- // move to overdefined.
- if (ConstantInt *Res =
- dyn_cast<ConstantInt>(ConstantFoldCompareInstOperands(
- CmpInst::ICMP_NE, getConstant(), RHS.getNotConstant(), DL)))
- if (Res->isOne())
- return markNotConstant(RHS.getNotConstant());
-
return markOverdefined();
}
@@ -247,15 +238,6 @@ public:
if (RHS.isConstant()) {
if (Val == RHS.Val)
return markOverdefined();
-
- // Unless we can prove that the two Constants are different, we must
- // move to overdefined.
- if (ConstantInt *Res =
- dyn_cast<ConstantInt>(ConstantFoldCompareInstOperands(
- CmpInst::ICMP_NE, getNotConstant(), RHS.getConstant(), DL)))
- if (Res->isOne())
- return false;
-
return markOverdefined();
}
OpenPOWER on IntegriCloud