| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineMulDivRem.cpp | 340 if (((match(Op0, m_ZExt(m_Value(X))) && match(Op1, m_ZExt(m_Value(Y)))) || in visitMul() 350 if (((match(Op0, m_SExt(m_Value(X))) && match(Op1, m_ZExt(m_Value(Y)))) || in visitMul() 351 (match(Op0, m_ZExt(m_Value(X))) && match(Op1, m_SExt(m_Value(Y))))) && in visitMul() 360 if (match(Op0, m_ZExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) in visitMul() 362 if (match(Op1, m_ZExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) in visitMul() 956 if (match(Op, m_ZExt(m_Value(X)))) in takeLog2() 1001 if (match(N, m_ZExt(m_Value(X))) && match(D, m_ZExt(m_Value(Y))) && in narrowUDivURem() 1010 if ((match(N, m_OneUse(m_ZExt(m_Value(X)))) && match(D, m_Constant(C))) || in narrowUDivURem() 1011 (match(D, m_OneUse(m_ZExt(m_Value(X)))) && match(N, m_Constant(C)))) { in narrowUDivURem()
|
| H A D | InstCombineShifts.cpp | 856 if (match(Op0, m_OneUse(m_ZExt(m_Value(X))))) { in visitShl() 1043 if (match(Op0, m_ZExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) { in visitShl() 1145 if (match(Op0, m_OneUse(m_ZExt(m_Value(X)))) && in visitLShr() 1261 m_OneUse(m_ZExt(m_Value(X))))))) { in visitLShr() 1389 if (match(Op0, m_Shl(m_ZExt(m_Value(X)), m_Specific(Op1))) && in visitAShr()
|
| H A D | InstCombineAndOrXor.cpp | 1386 if (match(Cast, m_OneUse(m_ZExt(m_Value(X))))) { in foldLogicCastConstant() 1561 if (!match(Op1, m_ZExt(m_Value(X))) || Op1->hasNUsesOrMore(3)) in narrowMaskedBinOp() 1871 if (match(BO, m_c_BinOp(m_OneUse(m_ZExt(m_Value(X))), m_APInt(C1))) && in visitAnd() 1887 match(BO->getOperand(0), m_OneUse(m_ZExt(m_Value(X)))) && in visitAnd() 1897 match(BO->getOperand(1), m_OneUse(m_ZExt(m_Value(X)))) && in visitAnd() 1985 if (match(&I, m_And(m_OneUse(m_Shl(m_ZExt(m_Value(X)), m_Value(Y))), in visitAnd() 2279 if (match(L, m_ZExt(m_And(m_Value(X), m_SpecificInt(Mask)))) && in matchFunnelShift() 2284 if (match(L, m_ZExt(m_And(m_Value(X), m_SpecificInt(Mask)))) && in matchFunnelShift() 2285 match(R, m_ZExt(m_And(m_Neg(m_Specific(X)), m_SpecificInt(Mask))))) in matchFunnelShift() 2324 if (!match(Op0, m_OneUse(m_ZExt(m_Value(LowerSrc)))) || in matchOrConcat() [all …]
|
| H A D | InstCombineAddSub.cpp | 823 match(Op0, m_OneUse(m_ZExt(m_NUWAdd(m_Value(X), m_APInt(C2))))) && in foldNoWrapAdd() 840 if (match(Op0, m_OneUse(m_ZExt(m_NUWAdd(m_Value(X), m_Constant(NarrowC)))))) { in foldNoWrapAdd() 874 if (match(Op0, m_ZExt(m_Value(X))) && in foldAddWithConstant() 915 if (match(Op0, m_ZExt(m_Xor(m_Value(X), m_APInt(C2)))) && in foldAddWithConstant() 1941 if (match(Op1, m_ZExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) in visitSub()
|
| H A D | InstCombineCalls.cpp | 549 if (match(Op0, m_OneUse(m_ZExt(m_Value(X)))) && match(Op1, m_One())) { in foldCttzCtlz() 648 if (match(Op0, m_OneUse(m_ZExt(m_Value(X))))) { in foldCtpop() 1309 if (match(I0, m_ZExt(m_Value(X))) && match(I1, m_ZExt(m_Value(Y))) && in visitCallInst() 1315 if (match(I0, m_ZExt(m_Value(X))) && match(I1, m_Constant(C)) && in visitCallInst()
|
| H A D | InstCombineCasts.cpp | 602 if (match(L, m_ZExt(m_And(m_Value(X), m_SpecificInt(Mask)))) && in narrowFunnelShift() 603 match(R, m_ZExt(m_And(m_Neg(m_Specific(X)), m_SpecificInt(Mask))))) in narrowFunnelShift() 961 if (match(Src, m_OneUse(m_Intrinsic<Intrinsic::ctlz>(m_ZExt(m_Value(A)), in visitTrunc()
|
| H A D | InstCombineCompares.cpp | 4678 if ((Op0->hasOneUse() && match(Op0, m_ZExt(m_Value(A))) && in foldICmpEquality() 4681 match(Op1, m_ZExt(m_Value(A))))) { in foldICmpEquality() 5734 if (match(&I, m_c_ICmp(Pred, m_Value(X), m_OneUse(m_ZExt(m_Value(Y))))) && in foldICmpUsingBoolRange() 6319 if (match(Op0, m_Mul(m_ZExt(m_Value(A)), m_ZExt(m_Value(B))))) { in visitICmpInst() 6323 if (match(Op1, m_Mul(m_ZExt(m_Value(A)), m_ZExt(m_Value(B))))) { in visitICmpInst()
|
| H A D | InstCombineSelect.cpp | 966 if (!match(SelectArg, m_ZExt(m_Value(Count))) && in foldSelectCttzCtlz() 1057 if (match(TrueVal, m_ZExt(m_Specific(CmpLHS))) && ZextRHS == FalseVal) { in adjustMinMax() 1060 } else if (match(FalseVal, m_ZExt(m_Specific(CmpLHS))) && in adjustMinMax()
|
| H A D | InstCombineVectorOps.cpp | 1484 else if (match(Vec, m_ZExt(m_Value(X))) && match(Scalar, m_ZExt(m_Value(Y)))) in narrowInsElt()
|
| H A D | InstCombineSimplifyDemanded.cpp | 469 if (match(I, m_c_Add(m_OneUse(m_ZExt(m_Value(X))), in SimplifyDemandedUseBits()
|
| H A D | InstructionCombining.cpp | 1894 if (!IsSext && !match(Op0, m_ZExt(m_Value(X)))) in narrowMathIfNoOverflow()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | ConstraintElimination.cpp | 207 m_ZExt(m_Value(Op0)))) { in decompose() 250 if (match(V, m_ZExt(m_Value(Op0)))) in decompose()
|
| H A D | IndVarSimplify.cpp | 1466 if (!match(LHS, m_ZExt(m_Value(LHSOp))) || !ICmp->isSigned()) in canonicalizeExitCondition() 1516 if (!match(LHS, m_ZExt(m_Value(LHSOp)))) in canonicalizeExitCondition()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUInstCombineIntrinsic.cpp | 90 : match(&V, m_ZExt(PatternMatch::m_Value(CastSrc))); in canSafelyConvertTo16Bit() 775 match(Src0, m_ZExt(PatternMatch::m_Value(ExtSrc)))) || in instCombineIntrinsic()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | PatternMatch.h | 1629 inline CastClass_match<OpTy, Instruction::ZExt> m_ZExt(const OpTy &Op) { in m_ZExt() function 1636 return m_CombineOr(m_ZExt(Op), Op); in m_ZExtOrSelf() 1649 return m_CombineOr(m_ZExt(Op), m_SExt(Op)); in m_ZExtOrSExt()
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | PatternMatch.cpp | 508 EXPECT_FALSE(m_ZExt(m_One()).match(One32)); in TEST_F() 509 EXPECT_TRUE(m_ZExt(m_One()).match(One64Z)); in TEST_F() 510 EXPECT_FALSE(m_ZExt(m_One()).match(One64S)); in TEST_F()
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | HexagonLoopIdiomRecognition.cpp | 786 !match(T, m_Shl(m_ZExt(m_Value(Q)), m_ZExt(m_Specific(CIV))))) in matchLeftShift()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | Local.cpp | 3031 if (match(V, m_ZExt(m_Value(X)))) { in collectBitParts()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | CodeGenPrepare.cpp | 7598 m_c_Or(m_OneUse(m_ZExt(m_Value(LValue))), in splitMergedValStore() 7599 m_OneUse(m_Shl(m_OneUse(m_ZExt(m_Value(HValue))), in splitMergedValStore()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | InstructionSimplify.cpp | 1007 (match(Op1, m_ZExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1))) in simplifyDivRem() 3275 if (!CmpInst::isUnsigned(Pred) && match(LHS, m_Neg(m_ZExt(m_Value())))) { in simplifyICmpWithBinOp()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/ |
| H A D | SLPVectorizer.cpp | 6681 !match(ZextLoad, m_ZExt(m_Value(Load))) || !isa<LoadInst>(Load)) in isLoadCombineCandidateImpl()
|