diff options
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r-- | llvm/lib/Analysis/ValueTracking.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp index 6e039ad..535a248 100644 --- a/llvm/lib/Analysis/ValueTracking.cpp +++ b/llvm/lib/Analysis/ValueTracking.cpp @@ -2784,11 +2784,8 @@ static bool isKnownNonZeroFromOperator(const Operator *I, // This all implies the 2 i16 elements are non-zero. Type *FromTy = I->getOperand(0)->getType(); if ((FromTy->isIntOrIntVectorTy() || FromTy->isPtrOrPtrVectorTy()) && - (BitWidth % getBitWidth(FromTy->getScalarType(), Q.DL)) == 0) { - if (match(I, m_ElementWiseBitCast(m_Value()))) - return isKnownNonZero(I->getOperand(0), DemandedElts, Q, Depth); + (BitWidth % getBitWidth(FromTy->getScalarType(), Q.DL)) == 0) return isKnownNonZero(I->getOperand(0), Q, Depth); - } } break; case Instruction::IntToPtr: // Note that we have to take special care to avoid looking through |