summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDávid Bolvanský <david.bolvansky@gmail.com>2019-11-03 20:24:01 +0100
committerDávid Bolvanský <david.bolvansky@gmail.com>2019-11-03 20:24:01 +0100
commitd825ed24d2f324eb02a3a91fdc64f9576f36f45b (patch)
tree24014b7a7f95a2edabba1e1233188e2f74e016ae /llvm/lib
parentb8685cf3042f6a2e129061922bd6b18e3c42258e (diff)
downloadbcm5719-llvm-d825ed24d2f324eb02a3a91fdc64f9576f36f45b.tar.gz
bcm5719-llvm-d825ed24d2f324eb02a3a91fdc64f9576f36f45b.zip
Revert "[InstructionCompares] Fixed null check after dereferencing warning. NFCI."
This reverts commit b8685cf3042f6a2e129061922bd6b18e3c42258e.
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
index 23f4e1342da..5fb3ec87571 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
@@ -3817,7 +3817,6 @@ Instruction *InstCombiner::foldICmpBinOp(ICmpInst &I, const SimplifyQuery &SQ) {
// if C2 has greater magnitude than C1:
// icmp (A + C1), (C + C2) -> icmp A, (C + C3)
// s.t. C3 = C2 - C1
- assert(BO0 && BO1);
if (A && C && NoOp0WrapProblem && NoOp1WrapProblem &&
(BO0->hasOneUse() || BO1->hasOneUse()) && !I.isUnsigned())
if (ConstantInt *C1 = dyn_cast<ConstantInt>(B))
OpenPOWER on IntegriCloud