| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineShifts.cpp | 920 m_Add(m_OneUse(m_ZExt(m_Value(X))), m_OneUse(m_ZExt(m_Value(Y)))))) in foldLShrOverflowBit() 1046 if (match(Op0, m_OneUse(m_ZExt(m_Value(X))))) { in visitShl() 1232 if (match(Op0, m_ZExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) { in visitShl() 1414 if (match(Op0, m_OneUse(m_ZExt(m_Value(X)))) && in visitLShr() 1544 m_OneUse(m_ZExt(m_Value(X))))))) { in visitLShr() 1566 match(X, m_ZExt(m_Value(BoolX))) && match(Y, m_ZExt(m_Value(BoolY))) && in visitLShr() 1689 if (match(Op0, m_Shl(m_ZExt(m_Value(X)), m_Specific(Op1))) && in visitAShr()
|
| H A D | InstCombineAddSub.cpp | 822 match(Op0, m_ZExt(m_NUWAddLike(m_Value(X), m_APInt(C2)))) && in foldNoWrapAdd() 847 m_OneUse(m_ZExt(m_NUWAddLike(m_Value(X), m_Constant(NarrowC)))))) { in foldNoWrapAdd() 881 if (match(Op0, m_ZExt(m_Value(X))) && in foldAddWithConstant() 940 if (match(Op0, m_ZExt(m_Xor(m_Value(X), m_APInt(C2)))) && in foldAddWithConstant() 1000 if (match(Op0, m_ZExt(m_Add(m_Value(X), m_AllOnes())))) { in foldAddWithConstant() 1614 if ((match(RHS, m_ZExt(m_Value(A))) && in visitAdd() 1615 match(LHS, m_ZExt(m_NUWSub(m_Value(B), m_Specific(A))))) || in visitAdd() 1616 (match(LHS, m_ZExt(m_Value(A))) && in visitAdd() 1617 match(RHS, m_ZExt(m_NUWSub(m_Value(B), m_Specific(A)))))) in visitAdd() 1621 if (match(&I, m_c_BinOp(m_ZExt(m_Value(A)), m_SExt(m_Deferred(A)))) && in visitAdd() [all …]
|
| H A D | InstCombineMulDivRem.cpp | 449 if (((match(Op0, m_ZExt(m_Value(X))) && match(Op1, m_ZExt(m_Value(Y)))) || in visitMul() 459 if (((match(Op0, m_SExt(m_Value(X))) && match(Op1, m_ZExt(m_Value(Y)))) || in visitMul() 460 (match(Op0, m_ZExt(m_Value(X))) && match(Op1, m_SExt(m_Value(Y))))) && in visitMul() 469 if (match(Op0, m_ZExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) in visitMul() 471 if (match(Op1, m_ZExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) in visitMul() 1426 if (match(Op, m_ZExt(m_Value(X)))) in takeLog2() 1479 if (match(N, m_ZExt(m_Value(X))) && match(D, m_ZExt(m_Value(Y))) && in narrowUDivURem() 1488 if (isa<Instruction>(N) && match(N, m_OneUse(m_ZExt(m_Value(X)))) && in narrowUDivURem() 1499 if (isa<Instruction>(D) && match(D, m_OneUse(m_ZExt(m_Value(X)))) && in narrowUDivURem()
|
| H A D | InstCombineAndOrXor.cpp | 1723 if (match(Cast, m_OneUse(m_ZExt(m_Value(X))))) { in foldLogicCastConstant() 1762 match(Op1, m_OneUse(m_ZExt(m_ICmp(Pred, m_Value(), m_Value())))); in foldCastedBitwiseLogic() 1926 if (!match(Op1, m_ZExt(m_Value(X))) || Op1->hasNUsesOrMore(3)) in narrowMaskedBinOp() 2454 if (match(BO, m_c_BinOp(m_OneUse(m_ZExt(m_Value(X))), m_APInt(C1))) && in visitAnd() 2470 match(BO->getOperand(0), m_OneUse(m_ZExt(m_Value(X)))) && in visitAnd() 2480 match(BO->getOperand(1), m_OneUse(m_ZExt(m_Value(X)))) && in visitAnd() 2590 if (match(&I, m_And(m_OneUse(m_Shl(m_ZExt(m_Value(X)), m_Value(Y))), in visitAnd() 2761 if (match(&I, m_c_And(m_OneUse(m_ZExt(m_Value(A))), m_Value(B))) && in visitAnd() 2938 if (match(L, m_ZExt(m_And(m_Value(X), m_SpecificInt(Mask)))) && in convertOrOfShiftsToFunnelShift() 2940 m_And(m_Neg(m_ZExt(m_And(m_Specific(X), m_SpecificInt(Mask)))), in convertOrOfShiftsToFunnelShift() [all …]
|
| H A D | InstCombineCalls.cpp | 535 if (match(Op0, m_OneUse(m_ZExt(m_Value(X)))) && match(Op1, m_One())) { in foldCttzCtlz() 670 if (match(Op0, m_OneUse(m_ZExt(m_Value(X))))) { in foldCtpop() 1718 if (match(I0, m_ZExt(m_Value(X))) && match(I1, m_ZExt(m_Value(Y))) && in visitCallInst() 1724 if (match(I0, m_ZExt(m_Value(X))) && match(I1, m_Constant(C)) && in visitCallInst() 1917 if (match(IIOperand, m_ZExt(m_Value(X))) && in visitCallInst() 2678 if (match(Exp, m_ZExt(m_Value(ExtSrc))) && in visitCallInst()
|
| H A D | InstCombineCasts.cpp | 503 if (match(L, m_ZExt(m_And(m_Value(X), m_SpecificInt(Mask)))) && in narrowFunnelShift() 504 match(R, m_ZExt(m_And(m_Neg(m_Specific(X)), m_SpecificInt(Mask))))) in narrowFunnelShift() 883 if (match(Src, m_OneUse(m_Intrinsic<Intrinsic::ctlz>(m_ZExt(m_Value(A)), in visitTrunc()
|
| H A D | InstCombineCompares.cpp | 1530 m_OneUse(m_ZExt(m_Value(Y)))))) { in foldICmpTruncWithTruncOrExt() 1954 if (match(And, m_OneUse(m_c_And(m_OneUse(m_ZExt(m_Value(X))), m_Value(Y)))) && in foldICmpAndConstant() 5668 if (match(Op1, m_ZExt(m_Value(A))) && in foldICmpEquality() 6700 if (match(&I, m_c_ICmp(Pred, m_Value(X), m_OneUse(m_ZExt(m_Value(Y))))) && in foldICmpUsingBoolRange() 7528 if (match(Op0, m_NUWMul(m_ZExt(m_Value(X)), m_ZExt(m_Value(Y)))) && in visitICmpInst()
|
| H A D | InstCombineVectorOps.cpp | 1527 else if (match(Vec, m_ZExt(m_Value(X))) && match(Scalar, m_ZExt(m_Value(Y)))) in narrowInsElt()
|
| H A D | InstCombineSimplifyDemanded.cpp | 493 if (match(I, m_c_Add(m_OneUse(m_ZExt(m_Value(X))), in SimplifyDemandedUseBits()
|
| H A D | InstCombineSelect.cpp | 1151 if (!match(SelectArg, m_ZExt(m_Value(Count))) && in foldSelectCttzCtlz()
|
| H A D | InstructionCombining.cpp | 2270 if (!IsSext && !match(Op0, m_ZExt(m_Value(X)))) in narrowMathIfNoOverflow()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | SelectOptimize.cpp | 150 I, m_c_Or(m_OneUse(m_ZExt(m_Value(X))), m_Value())) && in match() 182 m_OneUse(m_ZExt(m_Value(X))))) in getNonInvertedCondition() 185 m_OneUse(m_ZExt(m_Value(X))))) in getNonInvertedCondition() 232 m_OneUse(m_ZExt(m_Value(X))))) in getFalseValue() 235 m_OneUse(m_ZExt(m_Value(X))))) in getFalseValue()
|
| H A D | CodeGenPrepare.cpp | 8001 m_c_Or(m_OneUse(m_ZExt(m_Value(LValue))), in splitMergedValStore() 8002 m_OneUse(m_Shl(m_OneUse(m_ZExt(m_Value(HValue))), in splitMergedValStore()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | VPlanPatternMatch.h | 248 inline AllUnaryRecipe_match<Op0_t, Instruction::ZExt> m_ZExt(const Op0_t &Op0) { 261 return m_CombineOr(m_ZExt(Op0), m_SExt(Op0));
|
| H A D | LoopIdiomVectorize.cpp | 324 if (IdxA != IdxB || !match(IdxA, m_ZExt(m_Specific(Index)))) in recognizeByteCompare()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/ |
| H A D | AggressiveInstCombine.cpp | 641 m_OneUse(m_Shl(m_OneUse(m_ZExt(m_OneUse(m_Instruction(L2)))), in foldLoadsRecursive() 644 m_OneUse(m_ZExt(m_OneUse(m_Instruction(L2)))))))) { in foldLoadsRecursive() 655 (match(X, m_OneUse(m_ZExt(m_Instruction(L1)))) || in foldLoadsRecursive() 656 match(X, m_OneUse(m_Shl(m_OneUse(m_ZExt(m_OneUse(m_Instruction(L1)))), in foldLoadsRecursive()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | SDPatternMatch.h | 683 template <typename Opnd> inline UnaryOpc_match<Opnd> m_ZExt(const Opnd &Op) { 702 return m_AnyOf(m_ZExt(Op), Op);
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUInstCombineIntrinsic.cpp | 93 : match(&V, m_ZExt(PatternMatch::m_Value(CastSrc))); in canSafelyConvertTo16Bit() 901 match(Src0, m_ZExt(PatternMatch::m_Value(ExtSrc)))) || in instCombineIntrinsic()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | IndVarSimplify.cpp | 1463 if (!match(LHS, m_ZExt(m_Value(LHSOp))) || !ICmp->isSigned()) in canonicalizeExitCondition() 1513 if (!match(LHS, m_ZExt(m_Value(LHSOp)))) in canonicalizeExitCondition()
|
| H A D | ConstraintElimination.cpp | 553 if (match(V, m_ZExt(m_Value(Op0)))) { in decompose()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | PatternMatch.h | 2045 inline CastInst_match<OpTy, ZExtInst> m_ZExt(const OpTy &Op) { in m_ZExt() function 2057 return m_CombineOr(m_ZExt(Op), Op); in m_ZExtOrSelf() 2077 return m_CombineOr(m_ZExt(Op), m_SExt(Op)); in m_ZExtOrSExt()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonLoopIdiomRecognition.cpp | 785 !match(T, m_Shl(m_ZExt(m_Value(Q)), m_ZExt(m_Specific(CIV))))) in matchLeftShift()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | Local.cpp | 3881 if (match(V, m_ZExt(m_Value(X)))) { in collectBitParts()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | InstructionSimplify.cpp | 3347 if (!CmpInst::isUnsigned(Pred) && match(LHS, m_Neg(m_ZExt(m_Value())))) { in simplifyICmpWithBinOp()
|
| H A D | ValueTracking.cpp | 3876 if (match(U->getOperand(0), m_ZExt(m_Value(X))) && in ComputeNumSignBitsImpl()
|