summaryrefslogtreecommitdiff
path: root/lib/Analysis/InstructionSimplify.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-03-04 19:26:08 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-03-04 19:26:08 +0000
commite2ee753bc440d373717b8fd06c062d50f1005268 (patch)
tree3017a9ea14712a95da60f48ed8ee60e45e6544eb /lib/Analysis/InstructionSimplify.cpp
parent49eaf76c53e47c838703916a2119b845c59b36a7 (diff)
downloadllvm-e2ee753bc440d373717b8fd06c062d50f1005268.tar.gz
llvm-e2ee753bc440d373717b8fd06c062d50f1005268.tar.bz2
llvm-e2ee753bc440d373717b8fd06c062d50f1005268.tar.xz
Revert broken srem logic from r126991.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127021 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/InstructionSimplify.cpp')
-rw-r--r--lib/Analysis/InstructionSimplify.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/Analysis/InstructionSimplify.cpp b/lib/Analysis/InstructionSimplify.cpp
index 44b0247e5a..1076eeff2d 100644
--- a/lib/Analysis/InstructionSimplify.cpp
+++ b/lib/Analysis/InstructionSimplify.cpp
@@ -1700,21 +1700,6 @@ static Value *SimplifyICmpInst(unsigned Predicate, Value *LHS, Value *RHS,
}
}
- if (LBO && match(LBO, m_SRem(m_Value(), m_Specific(RHS)))) {
- switch (Pred) {
- default:
- break;
- case ICmpInst::ICMP_EQ:
- case ICmpInst::ICMP_SGT:
- case ICmpInst::ICMP_SGE:
- return ConstantInt::getFalse(RHS->getContext());
- case ICmpInst::ICMP_NE:
- case ICmpInst::ICMP_SLT:
- case ICmpInst::ICMP_SLE:
- return ConstantInt::getTrue(RHS->getContext());
- }
- }
-
// If the comparison is with the result of a select instruction, check whether
// comparing with either branch of the select always yields the same value.
if (isa<SelectInst>(LHS) || isa<SelectInst>(RHS))