/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineVectorOps.cpp | 1306 if (!match(Op0, m_InsertElt(m_Undef(), m_Specific(X), m_ZeroInt()))) in foldInsEltIntoSplat() 1567 !match(BaseVec, m_Undef())) in foldTruncInsEltPair() 1636 if (match(VecOp, m_Undef()) && in visitInsertElementInst() 1935 if (match(V, m_Undef())) in evaluateInDifferentElementOrder() 2254 if (!match(Shuf.getOperand(1), m_Undef()) && in foldSelectShuffle() 2717 match(X, m_Undef()) || match(Y, m_Undef())) in foldIdentityPaddedShuffles() 2719 assert(match(Shuffle0->getOperand(1), m_Undef()) && in foldIdentityPaddedShuffles() 2720 match(Shuffle1->getOperand(1), m_Undef()) && in foldIdentityPaddedShuffles() 2839 if (match(LHS, m_BitCast(m_Value(X))) && match(RHS, m_Undef()) && in visitShuffleVectorInst() 2856 assert(!match(RHS, m_Undef()) && in visitShuffleVectorInst() [all …]
|
H A D | InstCombineNegator.cpp | 128 if (match(V, m_Undef())) in visitImpl()
|
H A D | InstCombineCasts.cpp | 214 if (match(Src, m_OneUse(m_Shuffle(m_Value(X), m_Undef(), m_Mask(Mask))))) { in commonCastTransforms() 633 if (Shuf && Shuf->hasOneUse() && match(Shuf->getOperand(1), m_Undef()) && in shrinkSplatShuffle() 666 if (match(VecOp, m_Undef())) { in shrinkInsertElt() 2794 assert(match(ShufOp1, m_Undef()) && "Unexpected shuffle op"); in visitBitCast()
|
H A D | InstCombineCalls.cpp | 1367 m_Shuffle(m_Value(X), m_Undef(), m_Mask(Mask)))) in foldShuffledIntrinsicOperands() 1380 m_Shuffle(m_Value(X), m_Undef(), m_SpecificMask(Mask))) || in foldShuffledIntrinsicOperands() 1442 !match(Arg, m_Shuffle(m_Value(V), m_Undef(), m_Mask(Mask))) || in simplifyReductionOperand() 2076 if (match(Op1, m_ZeroInt()) || match(Op1, m_Undef())) in visitCallInst() 2081 if (match(Op0, m_ZeroInt()) || match(Op0, m_Undef())) in visitCallInst() 3161 if (match(IIOperand, m_CombineOr(m_Zero(), m_Undef()))) { in visitCallInst()
|
H A D | InstCombineSelect.cpp | 890 if (!match(MergedC, m_Zero()) && !match(MergedC, m_Undef())) in foldSelectZeroOrMul() 3987 m_CombineOr(m_Undef(), m_Zero()))) || in visitSelectInst() 3989 m_CombineOr(m_Undef(), m_Zero()))))) { in visitSelectInst() 3999 m_CombineOr(m_Undef(), m_Zero()))) || in visitSelectInst() 4001 m_CombineOr(m_Undef(), m_Zero())))) && in visitSelectInst()
|
H A D | InstCombineLoadStoreAlloca.cpp | 1134 if (!match(V, m_Undef()) || !U) in likeBitCastFromVector()
|
H A D | InstCombineSimplifyDemanded.cpp | 1508 if (i == 0 ? match(I->getOperand(i), m_Undef()) in SimplifyDemandedVectorElts()
|
H A D | InstructionCombining.cpp | 2219 m_OneUse(m_Shuffle(m_Value(X), m_Undef(), m_Mask(MaskC)))) || in foldVectorBinop() 4657 if (match(Op0, m_Undef())) { in visitFreeze()
|
H A D | InstCombineCompares.cpp | 3391 if (match(BCSrcOp, m_Shuffle(m_Value(Vec), m_Undef(), m_Mask(Mask)))) { in foldICmpBitCast() 7053 if (!match(LHS, m_Shuffle(m_Value(V1), m_Undef(), m_Mask(M)))) in foldVectorCmp() 7060 if (match(RHS, m_Shuffle(m_Value(V2), m_Undef(), m_SpecificMask(M))) && in foldVectorCmp()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Constants.cpp | 771 if (match(C, m_Undef())) { in replaceUndefsWith() 787 NewC[i] = EltC && match(EltC, m_Undef()) ? Replacement : EltC; in replaceUndefsWith() 794 if (match(C, m_Undef())) in mergeUndefsWith() 798 if (match(Other, m_Undef())) in mergeUndefsWith() 817 if (!match(NewC[I], m_Undef()) && match(OtherEltC, m_Undef())) { in mergeUndefsWith()
|
H A D | ConstantFold.cpp | 669 if (match(C2, m_CombineOr(m_Undef(), m_Zero()))) in ConstantFoldBinaryInstruction() 677 if (match(C2, m_CombineOr(m_Undef(), m_Zero()))) in ConstantFoldBinaryInstruction()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | VectorCombine.cpp | 175 if (!match(&I, m_InsertElt(m_Undef(), m_Value(Scalar), m_ZeroInt())) || in vectorizeLoadInsert()
|
H A D | SLPVectorizer.cpp | 1549 m_Undef())))) { in getShallowScore()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | CodeGenPrepare.cpp | 7306 if (!match(SVI, m_Shuffle(m_InsertElt(m_Undef(), m_Value(), m_ZeroInt()), in optimizeShuffleVectorInst() 7307 m_Undef(), m_ZeroMask()))) in optimizeShuffleVectorInst()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | PatternMatch.h | 152 inline auto m_Undef() { return undef_match(); } in m_Undef() function
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86InstCombineIntrinsic.cpp | 2892 if (match(Mask, m_OneUse(m_Shuffle(m_Value(MaskSrc), m_Undef(), in instCombineIntrinsic()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | Local.cpp | 2991 if (match(CI->getArgOperand(0), m_CombineOr(m_Zero(), m_Undef()))) { in markAliveBlocks()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | InstructionSimplify.cpp | 7316 return match(V, m_Undef()); in isUndefValue()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMISelLowering.cpp | 19385 m_InsertElt(m_Undef(), m_Value(), m_ZeroInt()), in shouldSinkOperands() 19386 m_Undef(), m_ZeroMask()))) in shouldSinkOperands()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVISelLowering.cpp | 2167 if (!match(Op, m_Shuffle(m_InsertElt(m_Undef(), m_Value(), m_ZeroInt()), in shouldSinkOperands() 2168 m_Undef(), m_ZeroMask()))) in shouldSinkOperands()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64ISelLowering.cpp | 15896 if (!match(Op1, m_Shuffle(m_Value(S1Op1), m_Undef(), m_Mask(M1))) || in areExtractShuffleVectors() 15897 !match(Op2, m_Shuffle(m_Value(S2Op1), m_Undef(), m_Mask(M2)))) in areExtractShuffleVectors()
|