Skip to content

Commit 9e419a2

Browse files
goldsteinnyuxuanchen1997
authored andcommitted
[ValueTracking] Remove unnecessary m_ElementWiseBitCast from isKnownNonZeroFromOperator; NFC
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: https://phabricator.intern.facebook.com/D60250849
1 parent 8fed520 commit 9e419a2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

llvm/lib/Analysis/ValueTracking.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2784,11 +2784,8 @@ static bool isKnownNonZeroFromOperator(const Operator *I,
27842784
// This all implies the 2 i16 elements are non-zero.
27852785
Type *FromTy = I->getOperand(0)->getType();
27862786
if ((FromTy->isIntOrIntVectorTy() || FromTy->isPtrOrPtrVectorTy()) &&
2787-
(BitWidth % getBitWidth(FromTy->getScalarType(), Q.DL)) == 0) {
2788-
if (match(I, m_ElementWiseBitCast(m_Value())))
2789-
return isKnownNonZero(I->getOperand(0), DemandedElts, Q, Depth);
2787+
(BitWidth % getBitWidth(FromTy->getScalarType(), Q.DL)) == 0)
27902788
return isKnownNonZero(I->getOperand(0), Q, Depth);
2791-
}
27922789
} break;
27932790
case Instruction::IntToPtr:
27942791
// Note that we have to take special care to avoid looking through

0 commit comments

Comments
 (0)