Home
last modified time | relevance | path

Searched refs:m_Undef (Results 1 – 21 of 21) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp1306 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 DInstCombineNegator.cpp128 if (match(V, m_Undef())) in visitImpl()
H A DInstCombineCasts.cpp214 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 DInstCombineCalls.cpp1367 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 DInstCombineSelect.cpp890 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 DInstCombineLoadStoreAlloca.cpp1134 if (!match(V, m_Undef()) || !U) in likeBitCastFromVector()
H A DInstCombineSimplifyDemanded.cpp1508 if (i == 0 ? match(I->getOperand(i), m_Undef()) in SimplifyDemandedVectorElts()
H A DInstructionCombining.cpp2219 m_OneUse(m_Shuffle(m_Value(X), m_Undef(), m_Mask(MaskC)))) || in foldVectorBinop()
4657 if (match(Op0, m_Undef())) { in visitFreeze()
H A DInstCombineCompares.cpp3391 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 DConstants.cpp771 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 DConstantFold.cpp669 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 DVectorCombine.cpp175 if (!match(&I, m_InsertElt(m_Undef(), m_Value(Scalar), m_ZeroInt())) || in vectorizeLoadInsert()
H A DSLPVectorizer.cpp1549 m_Undef())))) { in getShallowScore()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp7306 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 DPatternMatch.h152 inline auto m_Undef() { return undef_match(); } in m_Undef() function
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp2892 if (match(Mask, m_OneUse(m_Shuffle(m_Value(MaskSrc), m_Undef(), in instCombineIntrinsic()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLocal.cpp2991 if (match(CI->getArgOperand(0), m_CombineOr(m_Zero(), m_Undef()))) { in markAliveBlocks()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp7316 return match(V, m_Undef()); in isUndefValue()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp19385 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 DRISCVISelLowering.cpp2167 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 DAArch64ISelLowering.cpp15896 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()