summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2016-02-01 23:21:11 +0000
committerPhilip Reames <listmail@philipreames.com>2016-02-01 23:21:11 +0000
commit13f7324b866d35a9f30c744aa047a7821f81a5c1 (patch)
tree4b6dd0371c5e8710ce86a14aab940932efae58dc /llvm
parentbddf6c8c57f45b5d6f51f399cd225212aa85501d (diff)
downloadbcm5719-llvm-13f7324b866d35a9f30c744aa047a7821f81a5c1.tar.gz
bcm5719-llvm-13f7324b866d35a9f30c744aa047a7821f81a5c1.zip
[LVI] Remove overly tight assert from 259429
I'll submit a test case shortly which covers this, but it's causing clang self host problems in the builders so I wanted to get it removed. llvm-svn: 259432
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Analysis/LazyValueInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/LazyValueInfo.cpp b/llvm/lib/Analysis/LazyValueInfo.cpp
index cdeaaa36ada..abc46c54b83 100644
--- a/llvm/lib/Analysis/LazyValueInfo.cpp
+++ b/llvm/lib/Analysis/LazyValueInfo.cpp
@@ -853,7 +853,6 @@ bool LazyValueInfoCache::solveBlockValueSelect(LVILatticeVal &BBLV,
LVILatticeVal Result; // Start Undefined.
Result.mergeIn(TrueVal, DL);
Result.mergeIn(FalseVal, DL);
- assert(!Result.isOverdefined() && "Should have exited previously");
BBLV = Result;
return true;
}
@@ -984,7 +983,8 @@ bool getValueFromFromCondition(Value *Val, ICmpInst *ICI,
}
/// \brief Compute the value of Val on the edge BBFrom -> BBTo. Returns false if
-/// Val is not constrained on the edge.
+/// Val is not constrained on the edge. Result is unspecified if return value
+/// is false.
static bool getEdgeValueLocal(Value *Val, BasicBlock *BBFrom,
BasicBlock *BBTo, LVILatticeVal &Result) {
// TODO: Handle more complex conditionals. If (v == 0 || v2 < 1) is false, we
OpenPOWER on IntegriCloud