| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineVectorOps.cpp | 1384 if (!match(Op0, m_InsertElt(m_Undef(), m_Specific(X), m_ZeroInt()))) in foldInsEltIntoSplat() 1645 !match(BaseVec, m_Undef())) in foldTruncInsEltPair() 1714 if (match(VecOp, m_Undef()) && in visitInsertElementInst() 2013 if (match(V, m_Undef())) in evaluateInDifferentElementOrder() 2332 if (!match(Shuf.getOperand(1), m_Undef()) && in foldSelectShuffle() 2796 match(X, m_Undef()) || match(Y, m_Undef())) in foldIdentityPaddedShuffles() 2798 assert(match(Shuffle0->getOperand(1), m_Undef()) && in foldIdentityPaddedShuffles() 2799 match(Shuffle1->getOperand(1), m_Undef()) && in foldIdentityPaddedShuffles() 2918 if (match(LHS, m_BitCast(m_Value(X))) && match(RHS, m_Undef()) && in visitShuffleVectorInst() 2935 assert(!match(RHS, m_Undef()) && in visitShuffleVectorInst() [all …]
|
| H A D | InstCombineNegator.cpp | 124 if (match(V, m_Undef())) in visitImpl()
|
| H A D | InstCombineCasts.cpp | 216 if (match(Src, m_OneUse(m_Shuffle(m_Value(X), m_Undef(), m_Mask(Mask))))) { in commonCastTransforms() 709 if (Shuf && Shuf->hasOneUse() && match(Shuf->getOperand(1), m_Undef()) && in shrinkSplatShuffle() 742 if (match(VecOp, m_Undef())) { in shrinkInsertElt() 2875 assert(match(ShufOp1, m_Undef()) && "Unexpected shuffle op"); in visitBitCast()
|
| H A D | InstCombineSelect.cpp | 913 if (!match(MergedC, m_Zero()) && !match(MergedC, m_Undef())) in foldSelectZeroOrMul() 4347 m_CombineOr(m_Undef(), m_Zero()))) || in visitSelectInst() 4349 m_CombineOr(m_Undef(), m_Zero()))))) { in visitSelectInst() 4359 m_CombineOr(m_Undef(), m_Zero()))) || in visitSelectInst() 4361 m_CombineOr(m_Undef(), m_Zero())))) && in visitSelectInst()
|
| H A D | InstCombineCalls.cpp | 1545 !match(Arg, m_Shuffle(m_Value(V), m_Undef(), m_Mask(Mask))) || in simplifyReductionOperand() 2345 if (match(Op1, m_ZeroInt()) || match(Op1, m_Undef())) in visitCallInst() 2350 if (match(Op0, m_ZeroInt()) || match(Op0, m_Undef())) in visitCallInst() 3460 if (match(IIOperand, m_CombineOr(m_Zero(), m_Undef()))) { in visitCallInst()
|
| H A D | InstCombineLoadStoreAlloca.cpp | 1178 if (!match(V, m_Undef()) || !U) in likeBitCastFromVector()
|
| H A D | InstructionCombining.cpp | 2461 m_OneUse(m_Shuffle(m_Value(X), m_Undef(), m_Mask(MaskC)))) || in foldVectorBinop() 5099 if (match(Op0, m_Undef())) { in visitFreeze() 5117 if (EltC && !match(EltC, m_Undef())) { in visitFreeze()
|
| H A D | InstCombineSimplifyDemanded.cpp | 1512 if (i == 0 ? match(I->getOperand(i), m_Undef()) in SimplifyDemandedVectorElts()
|
| H A D | InstCombineCompares.cpp | 3538 if (match(BCSrcOp, m_Shuffle(m_Value(Vec), m_Undef(), m_Mask(Mask)))) { in foldICmpBitCast() 7337 if (!match(LHS, m_Shuffle(m_Value(V1), m_Undef(), m_Mask(M)))) in foldVectorCmp() 7344 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 | 787 if (match(C, m_Undef())) { in replaceUndefsWith() 803 NewC[i] = EltC && match(EltC, m_Undef()) ? Replacement : EltC; in replaceUndefsWith() 810 if (match(C, m_Undef())) in mergeUndefsWith() 814 if (match(Other, m_Undef())) in mergeUndefsWith() 833 if (!match(NewC[I], m_Undef()) && match(OtherEltC, m_Undef())) { in mergeUndefsWith()
|
| H A D | ConstantFold.cpp | 664 if (match(C2, m_CombineOr(m_Undef(), m_Zero()))) in ConstantFoldBinaryInstruction() 672 if (match(C2, m_CombineOr(m_Undef(), m_Zero()))) in ConstantFoldBinaryInstruction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMTargetTransformInfo.cpp | 2873 if (!Shuffle || !match(Shuffle, m_Shuffle(m_InsertElt(m_Undef(), m_Value(), in isProfitableToSinkOperands() 2875 m_Undef(), m_ZeroMask()))) in isProfitableToSinkOperands()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVTargetTransformInfo.cpp | 2895 !match(Op, m_Shuffle(m_InsertElt(m_Undef(), m_Value(), m_ZeroInt()), in isProfitableToSinkOperands() 2896 m_Undef(), m_ZeroMask()))) in isProfitableToSinkOperands()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | SDPatternMatch.h | 160 inline Opcode_match m_Undef() { return Opcode_match(ISD::UNDEF); } in m_Undef() function
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | VectorCombine.cpp | 1967 m_Shuffle(m_OneUse(m_BinOp(BinOp)), m_Undef(), m_Mask(OuterMask)))) in foldPermuteOfBinops() 2156 if (match(Op, m_OneUse(m_Shuffle(m_Value(InnerOp), m_Undef(), in foldShuffleOfBinops()
|
| H A D | SLPVectorizer.cpp | 2285 m_Undef())))) { in getShallowScore()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86InstCombineIntrinsic.cpp | 2900 if (match(Mask, m_OneUse(m_Shuffle(m_Value(MaskSrc), m_Undef(), in instCombineIntrinsic()
|
| H A D | X86ISelLowering.cpp | 43007 m_InsertSubvector(m_Undef(), m_Value(Ops[0]), m_Zero())) && in combineTargetShuffle() 43009 m_InsertSubvector(m_Undef(), m_Value(Ops[1]), m_Zero())) && in combineTargetShuffle()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64TargetTransformInfo.cpp | 5995 if (!match(Op1, m_Shuffle(m_Value(S1Op1), m_Undef(), m_Mask(M1))) || in areExtractShuffleVectors() 5996 !match(Op2, m_Shuffle(m_Value(S2Op1), m_Undef(), m_Mask(M2)))) in areExtractShuffleVectors()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | CodeGenPrepare.cpp | 7701 if (!match(SVI, m_Shuffle(m_InsertElt(m_Undef(), m_Value(), m_ZeroInt()), in optimizeShuffleVectorInst() 7702 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/Transforms/Utils/ |
| H A D | Local.cpp | 3037 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 | 7358 return match(V, m_Undef()); in isUndefValue()
|