diff options
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r-- | llvm/lib/Analysis/ValueTracking.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp index e25aa9c..d1af0ea 100644 --- a/llvm/lib/Analysis/ValueTracking.cpp +++ b/llvm/lib/Analysis/ValueTracking.cpp @@ -1836,6 +1836,8 @@ void computeKnownBits(const Value *V, const APInt &DemandedElts, if (!DemandedElts[i]) continue; Constant *Element = CV->getAggregateElement(i); + if (isa<PoisonValue>(Element)) + continue; auto *ElementCI = dyn_cast_or_null<ConstantInt>(Element); if (!ElementCI) { Known.resetAll(); |