Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp1384 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 DInstCombineNegator.cpp124 if (match(V, m_Undef())) in visitImpl()
H A DInstCombineCasts.cpp216 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 DInstCombineSelect.cpp913 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 DInstCombineCalls.cpp1545 !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 DInstCombineLoadStoreAlloca.cpp1178 if (!match(V, m_Undef()) || !U) in likeBitCastFromVector()
H A DInstructionCombining.cpp2461 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 DInstCombineSimplifyDemanded.cpp1512 if (i == 0 ? match(I->getOperand(i), m_Undef()) in SimplifyDemandedVectorElts()
H A DInstCombineCompares.cpp3538 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 DConstants.cpp787 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 DConstantFold.cpp664 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 DARMTargetTransformInfo.cpp2873 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 DRISCVTargetTransformInfo.cpp2895 !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 DSDPatternMatch.h160 inline Opcode_match m_Undef() { return Opcode_match(ISD::UNDEF); } in m_Undef() function
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp1967 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 DSLPVectorizer.cpp2285 m_Undef())))) { in getShallowScore()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp2900 if (match(Mask, m_OneUse(m_Shuffle(m_Value(MaskSrc), m_Undef(), in instCombineIntrinsic()
H A DX86ISelLowering.cpp43007 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 DAArch64TargetTransformInfo.cpp5995 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 DCodeGenPrepare.cpp7701 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 DPatternMatch.h152 inline auto m_Undef() { return undef_match(); } in m_Undef() function
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLocal.cpp3037 if (match(CI->getArgOperand(0), m_CombineOr(m_Zero(), m_Undef()))) { in markAliveBlocks()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp7358 return match(V, m_Undef()); in isUndefValue()