| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | PatternMatch.cpp | 1007 m_Undef(), m_ZeroMask()))); in TEST_F() 1010 m_Undef(), m_ZeroMask()))); in TEST_F() 1017 m_Undef(), m_ZeroMask()))); in TEST_F() 1070 EXPECT_TRUE(match(ScalarUndef, m_Undef())); in TEST_F() 1071 EXPECT_TRUE(match(VectorUndef, m_Undef())); in TEST_F() 1072 EXPECT_FALSE(match(ScalarZero, m_Undef())); in TEST_F() 1073 EXPECT_FALSE(match(VectorZero, m_Undef())); in TEST_F() 1140 EXPECT_TRUE(match(ScalarUndef, m_Undef())); in TEST_F() 1141 EXPECT_TRUE(match(VectorUndef, m_Undef())); in TEST_F() 1142 EXPECT_FALSE(match(ScalarZero, m_Undef())); in TEST_F() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineVectorOps.cpp | 596 if (match(V, m_Undef())) { in collectSingleShuffleElements() 751 if (match(V, m_Undef())) { in collectShuffleElements() 1516 if (match(VecOp, m_Undef()) && in visitInsertElementInst() 1800 if (match(V, m_Undef())) in evaluateInDifferentElementOrder() 2056 if (!match(Shuf.getOperand(1), m_Undef()) && in foldSelectShuffle() 2500 match(X, m_Undef()) || match(Y, m_Undef())) in foldIdentityPaddedShuffles() 2611 assert(!match(RHS, m_Undef()) && in visitShuffleVectorInst() 2617 if (match(LHS, m_Undef())) { in visitShuffleVectorInst() 2797 if (!match(LHSShuffle->getOperand(1), m_Undef()) && !match(RHS, m_Undef())) in visitShuffleVectorInst() 2823 if (match(RHS, m_Undef())) { in visitShuffleVectorInst() [all …]
|
| H A D | InstCombineSimplifyDemanded.cpp | 1185 if (match(V, m_Undef())) { in SimplifyDemandedVectorElts() 1286 if (i == 0 ? match(I->getOperand(i), m_Undef()) in SimplifyDemandedVectorElts() 1360 if (!match(I->getOperand(1), m_Undef())) { in SimplifyDemandedVectorElts()
|
| H A D | InstCombineNegator.cpp | 135 if (match(V, m_Undef())) in visitImpl()
|
| H A D | InstructionCombining.cpp | 1715 if (match(LHS, m_Shuffle(m_Value(V1), m_Undef(), m_Mask(Mask))) && in foldVectorBinop() 1716 match(RHS, m_Shuffle(m_Value(V2), m_Undef(), m_SpecificMask(Mask))) && in foldVectorBinop() 1758 m_c_BinOp(m_OneUse(m_Shuffle(m_Value(V1), m_Undef(), m_Mask(Mask))), in foldVectorBinop() 1810 if (!MaybeUndef || !match(MaybeUndef, m_Undef())) { in foldVectorBinop() 1843 m_OneUse(m_Shuffle(m_Value(X), m_Undef(), m_Mask(MaskC)))) || in foldVectorBinop() 3964 if (match(Op0, m_Undef())) in visitFreeze()
|
| H A D | InstCombineSelect.cpp | 764 if (!match(MergedC, m_Zero()) && !match(MergedC, m_Undef())) in foldSelectZeroOrMul() 3169 m_CombineOr(m_Undef(), m_Zero()))) || in visitSelectInst() 3171 m_CombineOr(m_Undef(), m_Zero()))))) { in visitSelectInst() 3181 m_CombineOr(m_Undef(), m_Zero()))) || in visitSelectInst() 3183 m_CombineOr(m_Undef(), m_Zero())))) && in visitSelectInst()
|
| H A D | InstCombineCasts.cpp | 330 if (match(Src, m_OneUse(m_Shuffle(m_Value(X), m_Undef(), m_Mask(Mask))))) { in commonCastTransforms() 728 if (Shuf && Shuf->hasOneUse() && match(Shuf->getOperand(1), m_Undef()) && in shrinkSplatShuffle() 761 if (match(VecOp, m_Undef())) { in shrinkInsertElt() 2875 assert(match(ShufOp1, m_Undef()) && "Unexpected shuffle op"); in visitBitCast()
|
| H A D | InstCombineCalls.cpp | 1107 m_Shuffle(m_Value(X), m_Undef(), m_Mask(Mask)))) in foldShuffledIntrinsicOperands() 1120 m_Shuffle(m_Value(X), m_Undef(), m_SpecificMask(Mask))) || in foldShuffledIntrinsicOperands() 1571 if (match(Op1, m_ZeroInt()) || match(Op1, m_Undef())) in visitCallInst() 1576 if (match(Op0, m_ZeroInt()) || match(Op0, m_Undef())) in visitCallInst() 2662 !match(Arg, m_Shuffle(m_Value(V), m_Undef(), m_Mask(Mask))) || in visitCallInst()
|
| H A D | InstCombineLoadStoreAlloca.cpp | 1060 if (!match(V, m_Undef()) || !U) in likeBitCastFromVector()
|
| H A D | InstCombineCompares.cpp | 3094 if (match(BCSrcOp, m_Shuffle(m_Value(Vec), m_Undef(), m_Mask(Mask)))) { in foldICmpBitCast() 5988 if (!match(LHS, m_Shuffle(m_Value(V1), m_Undef(), m_Mask(M)))) in foldVectorCmp() 5995 if (match(RHS, m_Shuffle(m_Value(V2), m_Undef(), m_SpecificMask(M))) && in foldVectorCmp()
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | InstructionSimplify.h | 138 return match(V, m_Undef()); in isUndefValue()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Constants.cpp | 750 if (match(C, m_Undef())) { in replaceUndefsWith() 766 NewC[i] = EltC && match(EltC, m_Undef()) ? Replacement : EltC; in replaceUndefsWith() 773 if (match(C, m_Undef())) in mergeUndefsWith() 777 if (match(Other, m_Undef())) in mergeUndefsWith() 796 if (!match(NewC[I], m_Undef()) && match(OtherEltC, m_Undef())) { in mergeUndefsWith()
|
| H A D | ConstantFold.cpp | 931 if (match(C2, m_CombineOr(m_Undef(), m_Zero()))) in ConstantFoldBinaryInstruction() 942 if (match(C2, m_CombineOr(m_Undef(), m_Zero()))) in ConstantFoldBinaryInstruction()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/ |
| H A D | VectorCombine.cpp | 133 if (!Ty || !match(&I, m_InsertElt(m_Undef(), m_Value(Scalar), m_ZeroInt())) || in vectorizeLoadInsert() 543 m_OneUse(m_Shuffle(m_Value(V), m_Undef(), m_Mask(Mask)))))) in foldBitcastShuf()
|
| H A D | SLPVectorizer.cpp | 1176 m_Undef())))) { in getShallowScore()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | PatternMatch.h | 136 inline auto m_Undef() { return undef_match(); } in m_Undef() function
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | Local.cpp | 2276 if (match(CI->getArgOperand(0), m_CombineOr(m_Zero(), m_Undef()))) { in markAliveBlocks()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | CodeGenPrepare.cpp | 6916 if (!match(SVI, m_Shuffle(m_InsertElt(m_Undef(), m_Value(), m_ZeroInt()), in optimizeShuffleVectorInst() 6917 m_Undef(), m_ZeroMask()))) in optimizeShuffleVectorInst()
|
| /llvm-project-15.0.7/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelLowering.cpp | 1298 if (!match(Op, m_Shuffle(m_InsertElt(m_Undef(), m_Value(), m_ZeroInt()), in shouldSinkOperands() 1299 m_Undef(), m_ZeroMask()))) in shouldSinkOperands()
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/ |
| H A D | AArch64ISelLowering.cpp | 12711 if (!match(Op1, m_Shuffle(m_Value(S1Op1), m_Undef(), m_Mask(M1))) || in areExtractShuffleVectors() 12712 !match(Op2, m_Shuffle(m_Value(S2Op1), m_Undef(), m_Mask(M2)))) in areExtractShuffleVectors()
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | ARMISelLowering.cpp | 19072 m_InsertElt(m_Undef(), m_Value(), m_ZeroInt()), in shouldSinkOperands() 19073 m_Undef(), m_ZeroMask()))) in shouldSinkOperands()
|