| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSelect.cpp | 1559 if (!match(Sel1, m_Select(m_Value(Cmp1), m_Value(ReplacementLow), in canonicalizeClampLike() 1695 match(&Sel, m_Select(m_Value(), m_Value(SelVal0), m_Value(SelVal1))); in tryToReuseConstantFromSelectInComparison() 1789 if (match(&SI, m_Select(m_Specific(ICI), m_APInt(C), m_Instruction(Op)))) in foldSelectInstWithICmpConst() 1791 else if (match(&SI, m_Select(m_Specific(ICI), m_Instruction(Op), m_APInt(C)))) in foldSelectInstWithICmpConst() 2172 if (!match(Limit, m_Select(m_ICmp(Pred, m_Value(Op), m_APInt(C)), in foldOverflowingAddSubSelect() 3101 m_Select(m_Value(OuterCond), in foldSelectOfSymmetricSelect() 3102 m_OneUse(m_Select(m_Value(InnerCond), m_Value(InnerTrueVal), in foldSelectOfSymmetricSelect() 3104 m_OneUse(m_Select(m_Deferred(InnerCond), in foldSelectOfSymmetricSelect() 3128 m_Select(m_Value(OuterSel.Cond), m_Value(OuterSel.TrueVal), in foldNestedSelects() 3151 m_Select(m_Value(InnerSel.Cond), m_Value(InnerSel.TrueVal), in foldNestedSelects() [all …]
|
| H A D | InstCombineMulDivRem.cpp | 106 if (match(&I, m_c_Mul(m_OneUse(m_Select(m_Value(Cond), m_One(), m_AllOnes())), in foldMulSelectToNegate() 114 if (match(&I, m_c_Mul(m_OneUse(m_Select(m_Value(Cond), m_AllOnes(), m_One())), in foldMulSelectToNegate() 123 if (match(&I, m_c_FMul(m_OneUse(m_Select(m_Value(Cond), m_SpecificFP(1.0), in foldMulSelectToNegate() 131 if (match(&I, m_c_FMul(m_OneUse(m_Select(m_Value(Cond), m_SpecificFP(-1.0), in foldMulSelectToNegate() 1304 match(Op1, m_Select(m_Value(), m_ImmConstant(), m_ImmConstant()))) { in commonIDivRemTransforms()
|
| H A D | InstructionCombining.cpp | 1062 match(SelectOp, m_Select(m_Value(CondVal), m_Value(TrueVal), in foldBinOpOfSelectAndCastOfSelectCondition() 1313 bool LHSIsSelect = match(LHS, m_Select(m_Value(A), m_Value(B), m_Value(C))); in SimplifySelectsFeedingBinaryOp() 1314 bool RHSIsSelect = match(RHS, m_Select(m_Value(D), m_Value(E), m_Value(F))); in SimplifySelectsFeedingBinaryOp() 2573 m_Select(m_Value(Cond), m_Constant(TrueC), m_Constant(FalseC)))) in foldSelectGEP() 2828 bool IsSelect = match(V, m_Select(m_Value(Cond), m_Value(A), m_Value(B))) && in getFreelyInvertedImpl() 4402 if (match(&EV, m_ExtractValue<0>(m_Intrinsic<Intrinsic::frexp>(m_Select( in visitExtractValueInst() 5083 else if (match(U, m_Select(m_Specific(&I), m_Constant(), m_Value()))) in visitFreeze()
|
| H A D | InstCombineCasts.cpp | 1875 if (match(Op, m_Select(m_Value(Cond), m_FPExt(m_Value(X)), m_Value(Y))) && in visitFPTrunc() 1883 if (match(Op, m_Select(m_Value(Cond), m_Value(Y), m_FPExt(m_Value(X)))) && in visitFPTrunc() 2513 m_OneUse(m_Select(m_Value(Cond), m_Value(TVal), m_Value(FVal))))) in foldBitCastSelect()
|
| H A D | InstCombineShifts.cpp | 876 if (match(Op0, m_Select(m_Value(Cond), m_OneUse(m_BinOp(TBO)), in FoldShiftByConstant() 893 if (match(Op0, m_Select(m_Value(Cond), m_Value(TrueVal), in FoldShiftByConstant()
|
| H A D | InstCombineAddSub.cpp | 1406 if (!match(Select, m_Select(m_ICmp(Pred, m_Specific(X), m_APInt(Thr)), in canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract() 2643 if (!match(Select, m_OneUse(m_Select(m_Value(Cond), m_Value(TrueVal), in visitSub() 3001 if (match(OneUse, m_Select(m_Value(Cond), m_Value(X), m_Value(Y)))) { in visitFNeg()
|
| H A D | InstCombineCompares.cpp | 3105 m_Select(m_Value(A), m_Constant(C1), m_Constant(C2)))) || in foldICmpBinOpWithConstantViaTruthTable() 3107 m_Select(m_Value(B), m_Constant(C3), m_Constant(C4))) || in foldICmpBinOpWithConstantViaTruthTable() 3330 if (!match(UnequalVal, m_Select(m_ICmp(PredB, m_Value(LHS2), m_Value(RHS2)), in matchThreeWayIntCompare() 3687 m_Select(m_Value(Cond), m_Value(TV), in foldICmpBinOpEqualityWithConstant() 7606 if (match(Op0, m_Select(m_Value(Cond), m_Value(SelectTrue), in visitICmpInst() 7734 if (match(Op0, m_Select(m_Value(Cond), m_Value(A), m_Value(B))) && in visitICmpInst() 7735 match(Op1, m_Select(m_Specific(Cond), m_Value(C), m_Value(D))) && in visitICmpInst()
|
| H A D | InstCombineAndOrXor.cpp | 3636 if (match(Op, m_Select(m_Value(Cond), m_APInt(EqZero), m_APInt(NeZero)))) { in matchBitmaskMul() 4077 match(Op0, m_Select(m_Value(X), m_Value(A), m_Value(B))) && in visitOr() 4078 match(Op1, m_Select(m_Value(Y), m_Value(C), m_Value(D))) && X == Y) { in visitOr()
|
| H A D | InstCombineCalls.cpp | 2860 if (match(Arg, m_Select(m_Value(Cond), m_Value(TVal), m_Value(FVal)))) { in visitCallInst() 2988 m_OneUse(m_Select(m_Value(SelectCond), m_Value(SelectLHS), in visitCallInst()
|
| H A D | InstCombineVectorOps.cpp | 2516 m_OneUse(m_Select(m_Value(Cond), m_Value(X), m_Value(Y))))) in narrowVectorSelect()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | VPlanPatternMatch.h | 483 m_Select(const Op0_t &Op0, const Op1_t &Op1, const Op2_t &Op2) { in m_Select() function 505 m_Select(Op0, Op1, m_False())); in m_LogicalAnd() 512 return m_Select(Op0, m_True(), Op1); in m_LogicalOr()
|
| H A D | VPlanTransforms.cpp | 1082 if (match(Def, m_Select(m_VPValue(), m_VPValue(X), m_Deferred(X)))) in simplifyRecipe() 1087 if (match(Def, m_Select(m_Not(m_VPValue(C)), m_VPValue(X), m_VPValue(Y)))) { in simplifyRecipe() 2167 if (!match(VPI, m_Select(m_Specific(HeaderMask), m_VPValue(LHS), in optimizeMaskToEVL()
|
| H A D | VectorCombine.cpp | 1114 if (match(U, m_Select(m_Specific(&I), m_Value(), m_Value()))) in scalarizeOpOrCmp() 2231 m_OneUse(m_Select(m_Value(C1), m_Value(T1), m_Value(F1))), in foldShuffleOfSelects() 2232 m_OneUse(m_Select(m_Value(C2), m_Value(T2), m_Value(F2))), in foldShuffleOfSelects()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | IVDescriptors.cpp | 639 if (!match(I, m_Select(m_Cmp(), m_Value(), m_Value()))) in isAnyOfPattern() 707 if (!match(I, m_CombineOr(m_Select(m_OneUse(m_Cmp()), m_Value(NonRdxPhi), in isFindIVPattern() 709 m_Select(m_OneUse(m_Cmp()), m_Specific(OrigPhi), in isFindIVPattern() 807 !match(I, m_Select(m_OneUse(m_Cmp()), m_Value(), m_Value()))) in isMinMaxPattern()
|
| H A D | HashRecognize.cpp | 189 if (match(I, m_Select(m_ICmp(Pred, m_Value(L), m_Value(R)), m_Value(TV), in computeInstr() 390 m_Select(m_Cmp(), m_Instruction(TV), m_Instruction(FV)))) in matchConditionalRecurrence()
|
| H A D | VectorUtils.cpp | 450 if (match(V, m_Select(m_Value(X), m_Value(Y), m_Value(Z)))) in isSplatValue()
|
| H A D | InstructionSimplify.cpp | 2110 if (match(Op1, m_Select(m_Specific(Op0), m_Value(), m_Zero()))) in simplifyAndInst() 2112 else if (match(Op0, m_Select(m_Specific(Op1), m_Value(), m_Zero()))) in simplifyAndInst() 2401 if (match(Op1, m_Select(m_Specific(Op0), m_One(), m_Value()))) in simplifyOrInst() 2403 else if (match(Op0, m_Select(m_Specific(Op1), m_One(), m_Value()))) in simplifyOrInst()
|
| H A D | ValueTracking.cpp | 604 if (match(ValOut, m_Select(m_Value(), m_Specific(PHI), m_Value(V))) || in breakSelfRecursivePHI() 605 match(ValOut, m_Select(m_Value(), m_Value(V), m_Specific(PHI)))) in breakSelfRecursivePHI() 9063 match(I, m_Select(m_OneUse(m_Value()), m_Value(), m_Value())); in canConvertToMinOrMaxIntrinsic()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | ComplexDeinterleavingPass.cpp | 2079 if (!match(Real, m_Select(m_Instruction(MaskA), m_Instruction(AR), in identifySelectNode() 2081 !match(Imag, m_Select(m_Instruction(MaskB), m_Instruction(AI), in identifySelectNode()
|
| H A D | SelectOptimize.cpp | 801 if (match(I, m_Select(m_Value(Cond), m_Value(), m_Value()))) { in collectSelectGroups()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | EarlyCSE.cpp | 179 if (!match(V, m_Select(m_Value(Cond), m_Value(A), m_Value(B)))) in matchSelectWithOptionalNotCond()
|
| H A D | SimpleLoopUnswitch.cpp | 180 while (match(Cond, m_Select(m_Value(CondNext), m_One(), m_Zero()))) in skipTrivialSelect()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | TargetTransformInfoImpl.h | 491 if (match(I, m_Select(m_Value(), m_Constant(), m_Constant()))) in shouldTreatInstructionLikeSelect()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | SDPatternMatch.h | 551 m_Select(const T0_P &Cond, const T1_P &T, const T2_P &F) {
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | PatternMatch.h | 1848 m_Select(const Cond &C, const LHS &L, const RHS &R) { in m_Select() function 1858 return m_Select(C, m_ConstantInt<L>(), m_ConstantInt<R>()); in m_SelectCst()
|