| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineShifts.cpp | 901 m_Add(m_OneUse(m_ZExt(m_Value(X))), m_OneUse(m_ZExt(m_Value(Y)))))) in foldLShrOverflowBit() 1027 if (match(Op0, m_OneUse(m_ZExt(m_Value(X))))) { in visitShl() 1211 if (match(Op0, m_ZExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) { in visitShl() 1330 if (match(Op0, m_OneUse(m_ZExt(m_Value(X)))) && in visitLShr() 1447 m_OneUse(m_ZExt(m_Value(X))))))) { in visitLShr() 1469 match(X, m_ZExt(m_Value(BoolX))) && match(Y, m_ZExt(m_Value(BoolY))) && in visitLShr() 1586 if (match(Op0, m_Shl(m_ZExt(m_Value(X)), m_Specific(Op1))) && in visitAShr()
|
| H A D | InstCombineMulDivRem.cpp | 426 if (((match(Op0, m_ZExt(m_Value(X))) && match(Op1, m_ZExt(m_Value(Y)))) || in visitMul() 436 if (((match(Op0, m_SExt(m_Value(X))) && match(Op1, m_ZExt(m_Value(Y)))) || in visitMul() 437 (match(Op0, m_ZExt(m_Value(X))) && match(Op1, m_SExt(m_Value(Y))))) && in visitMul() 446 if (match(Op0, m_ZExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) in visitMul() 448 if (match(Op1, m_ZExt(m_Value(X))) && X->getType()->isIntOrIntVectorTy(1)) in visitMul() 1287 if (match(Op, m_ZExt(m_Value(X)))) in takeLog2() 1343 if (match(N, m_ZExt(m_Value(X))) && match(D, m_ZExt(m_Value(Y))) && in narrowUDivURem() 1352 if (isa<Instruction>(N) && match(N, m_OneUse(m_ZExt(m_Value(X)))) && in narrowUDivURem() 1363 if (isa<Instruction>(D) && match(D, m_OneUse(m_ZExt(m_Value(X)))) && in narrowUDivURem()
|
| H A D | InstCombineAddSub.cpp | 822 match(Op0, m_OneUse(m_ZExt(m_NUWAdd(m_Value(X), m_APInt(C2))))) && in foldNoWrapAdd() 874 if (match(Op0, m_ZExt(m_Value(X))) && in foldAddWithConstant() 927 if (match(Op0, m_ZExt(m_Xor(m_Value(X), m_APInt(C2)))) && in foldAddWithConstant() 987 if (match(Op0, m_ZExt(m_Add(m_Value(X), m_AllOnes())))) { in foldAddWithConstant() 1572 if ((match(RHS, m_ZExt(m_Value(A))) && in visitAdd() 1573 match(LHS, m_ZExt(m_NUWSub(m_Value(B), m_Specific(A))))) || in visitAdd() 1574 (match(LHS, m_ZExt(m_Value(A))) && in visitAdd() 1575 match(RHS, m_ZExt(m_NUWSub(m_Value(B), m_Specific(A)))))) in visitAdd() 1579 if (match(&I, m_c_BinOp(m_ZExt(m_Value(A)), m_SExt(m_Deferred(A)))) && in visitAdd() 1658 match(RHS, m_OneUse(m_ZExt( in visitAdd() [all …]
|
| H A D | InstCombineAndOrXor.cpp | 1642 if (match(Cast, m_OneUse(m_ZExt(m_Value(X))))) { in foldLogicCastConstant() 1845 if (!match(Op1, m_ZExt(m_Value(X))) || Op1->hasNUsesOrMore(3)) in narrowMaskedBinOp() 2345 match(BO->getOperand(0), m_OneUse(m_ZExt(m_Value(X)))) && in visitAnd() 2355 match(BO->getOperand(1), m_OneUse(m_ZExt(m_Value(X)))) && in visitAnd() 2651 if (match(&I, m_c_And(m_OneUse(m_ZExt(m_Value(A))), m_Value(B))) && in visitAnd() 2818 if (match(L, m_ZExt(m_And(m_Value(X), m_SpecificInt(Mask)))) && in matchFunnelShift() 2824 if (match(L, m_ZExt(m_And(m_Value(X), m_SpecificInt(Mask)))) && in matchFunnelShift() 2861 if (!match(Or1, m_ZExt(m_Value(Low))) || in matchFunnelShift() 2862 !match(ZextHigh, m_ZExt(m_Value(High)))) in matchFunnelShift() 2927 if (!match(Op0, m_OneUse(m_ZExt(m_Value(LowerSrc)))) || in matchOrConcat() [all …]
|
| H A D | InstCombineCalls.cpp | 541 if (match(Op0, m_OneUse(m_ZExt(m_Value(X)))) && match(Op1, m_One())) { in foldCttzCtlz() 671 if (match(Op0, m_OneUse(m_ZExt(m_Value(X))))) { in foldCtpop() 1632 if (match(I0, m_ZExt(m_Value(X))) && match(I1, m_ZExt(m_Value(Y))) && in visitCallInst() 1638 if (match(I0, m_ZExt(m_Value(X))) && match(I1, m_Constant(C)) && in visitCallInst() 1825 if (match(IIOperand, m_ZExt(m_Value(X))) && in visitCallInst()
|
| H A D | InstCombineCasts.cpp | 495 if (match(L, m_ZExt(m_And(m_Value(X), m_SpecificInt(Mask)))) && in narrowFunnelShift() 496 match(R, m_ZExt(m_And(m_Neg(m_Specific(X)), m_SpecificInt(Mask))))) in narrowFunnelShift() 862 if (match(Src, m_OneUse(m_Intrinsic<Intrinsic::ctlz>(m_ZExt(m_Value(A)), in visitTrunc()
|
| H A D | InstCombineCompares.cpp | 1507 m_OneUse(m_ZExt(m_Value(Y)))))) in foldICmpTruncWithTruncOrExt() 1915 if (match(And, m_OneUse(m_c_And(m_OneUse(m_ZExt(m_Value(X))), m_Value(Y)))) && in foldICmpAndConstant() 5339 if (match(Op1, m_ZExt(m_Value(A))) && in foldICmpEquality() 6371 if (match(&I, m_c_ICmp(Pred, m_Value(X), m_OneUse(m_ZExt(m_Value(Y))))) && in foldICmpUsingBoolRange() 7157 if (match(Op0, m_NUWMul(m_ZExt(m_Value(X)), m_ZExt(m_Value(Y)))) && in visitICmpInst()
|
| H A D | InstCombineVectorOps.cpp | 1519 else if (match(Vec, m_ZExt(m_Value(X))) && match(Scalar, m_ZExt(m_Value(Y)))) in narrowInsElt()
|
| H A D | InstCombineSimplifyDemanded.cpp | 497 if (match(I, m_c_Add(m_OneUse(m_ZExt(m_Value(X))), in SimplifyDemandedUseBits()
|
| H A D | InstCombineSelect.cpp | 1135 if (!match(SelectArg, m_ZExt(m_Value(Count))) && in foldSelectCttzCtlz()
|
| H A D | InstructionCombining.cpp | 2063 if (!IsSext && !match(Op0, m_ZExt(m_Value(X)))) in narrowMathIfNoOverflow()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | SelectOptimize.cpp | 146 I, m_c_Or(m_OneUse(m_ZExt(m_Value(X))), m_Value())) && in match() 170 m_OneUse(m_ZExt(m_Value(X))))) in getCondition() 173 m_OneUse(m_ZExt(m_Value(X))))) in getCondition() 205 m_OneUse(m_ZExt(m_Value(X))))) in getFalseValue() 208 m_OneUse(m_ZExt(m_Value(X))))) in getFalseValue()
|
| H A D | CodeGenPrepare.cpp | 7887 m_c_Or(m_OneUse(m_ZExt(m_Value(LValue))), in splitMergedValStore() 7888 m_OneUse(m_Shl(m_OneUse(m_ZExt(m_Value(HValue))), in splitMergedValStore()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/ |
| H A D | AggressiveInstCombine.cpp | 638 m_OneUse(m_Shl(m_OneUse(m_ZExt(m_OneUse(m_Instruction(L2)))), in foldLoadsRecursive() 641 m_OneUse(m_ZExt(m_OneUse(m_Instruction(L2)))))))) { in foldLoadsRecursive() 652 (match(X, m_OneUse(m_ZExt(m_Instruction(L1)))) || in foldLoadsRecursive() 653 match(X, m_OneUse(m_Shl(m_OneUse(m_ZExt(m_OneUse(m_Instruction(L1)))), in foldLoadsRecursive()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUInstCombineIntrinsic.cpp | 93 : match(&V, m_ZExt(PatternMatch::m_Value(CastSrc))); in canSafelyConvertTo16Bit() 902 match(Src0, m_ZExt(PatternMatch::m_Value(ExtSrc)))) || in instCombineIntrinsic()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | IndVarSimplify.cpp | 1451 if (!match(LHS, m_ZExt(m_Value(LHSOp))) || !ICmp->isSigned()) in canonicalizeExitCondition() 1501 if (!match(LHS, m_ZExt(m_Value(LHSOp)))) in canonicalizeExitCondition()
|
| H A D | ConstraintElimination.cpp | 543 if (match(V, m_ZExt(m_Value(Op0)))) { in decompose()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64LoopIdiomTransform.cpp | 338 if (IdxA != IdxB || !match(IdxA, m_ZExt(m_Specific(Index)))) in recognizeByteCompare()
|
| H A D | AArch64ISelLowering.cpp | 15178 } else if (match(&Op, m_ZExt(m_Value()))) { in shouldSinkOperands()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | PatternMatch.h | 1755 inline CastInst_match<OpTy, Instruction::ZExt> m_ZExt(const OpTy &Op) { in m_ZExt() function 1767 return m_CombineOr(m_ZExt(Op), Op); in m_ZExtOrSelf() 1788 return m_CombineOr(m_ZExt(Op), m_SExt(Op)); in m_ZExtOrSExt()
|
| /freebsd-14.2/contrib/llvm-project/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()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | Local.cpp | 3775 if (match(V, m_ZExt(m_Value(X)))) { in collectBitParts()
|
| /freebsd-14.2/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()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | SLPVectorizer.cpp | 8563 !match(ZextLoad, m_ZExt(m_Value(Load))) || !isa<LoadInst>(Load)) in isLoadCombineCandidateImpl()
|