diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2016-10-02 02:40:27 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2016-10-02 02:40:27 +0000 |
commit | f230b0aa43f9af0da9f5970dac2f41bc7e6e254b (patch) | |
tree | 6036b87d5b3941e1860950b83fb950046dd5c95e /llvm/lib/IR/ConstantRange.cpp | |
parent | 415c2a38f251a74e83dc910058eddaddb63458d4 (diff) | |
download | bcm5719-llvm-f230b0aa43f9af0da9f5970dac2f41bc7e6e254b.tar.gz bcm5719-llvm-f230b0aa43f9af0da9f5970dac2f41bc7e6e254b.zip |
Revert r283057 and r283058
They've broken the sanitizer-bootstrap bots. Reverting while I investigate.
Original commit messages:
r283057: "[ConstantRange] Make getEquivalentICmp smarter"
r283058: "[SCEV] Rely on ConstantRange instead of custom logic; NFCI"
llvm-svn: 283062
Diffstat (limited to 'llvm/lib/IR/ConstantRange.cpp')
-rw-r--r-- | llvm/lib/IR/ConstantRange.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/IR/ConstantRange.cpp b/llvm/lib/IR/ConstantRange.cpp index 0dbefc7b0c2..0f5c7128f3d 100644 --- a/llvm/lib/IR/ConstantRange.cpp +++ b/llvm/lib/IR/ConstantRange.cpp @@ -147,14 +147,6 @@ bool ConstantRange::getEquivalentICmp(CmpInst::Predicate &Pred, Pred = isEmptySet() ? CmpInst::ICMP_ULT : CmpInst::ICMP_UGE; RHS = APInt(getBitWidth(), 0); Success = true; - } else if (auto *OnlyElt = getSingleElement()) { - Pred = CmpInst::ICMP_EQ; - RHS = *OnlyElt; - Success = true; - } else if (auto *OnlyMissingElt = inverse().getSingleElement()) { - Pred = CmpInst::ICMP_NE; - RHS = *OnlyMissingElt; - Success = true; } else if (getLower().isMinSignedValue() || getLower().isMinValue()) { Pred = getLower().isMinSignedValue() ? CmpInst::ICMP_SLT : CmpInst::ICMP_ULT; |