| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| D | AMDGPULowerKernelAttributes.cpp | 187 m_Select(m_ICmp(Pred, SubExpr, m_Specific(ZextGroupSize)), in processUse()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| D | InstCombineSelect.cpp | 1294 if (!match(Sel1, m_Select(m_Value(Cmp1), m_Value(ReplacementLow), in canonicalizeClampLike() 1397 match(&Sel, m_Select(m_Value(), m_Value(SelVal0), m_Value(SelVal1))); in tryToReuseConstantFromSelectInComparison() 1815 if (!match(Limit, m_Select(m_ICmp(Pred, m_Value(Op), m_APInt(C)), in foldOverflowingAddSubSelect() 2724 if (match(CondVal, m_Select(m_Value(A), m_One(), m_Value(B))) && in visitSelectInst() 2728 if (match(CondVal, m_Select(m_Value(A), m_Value(B), m_Zero())) && in visitSelectInst() 2767 if (match(CondVal, m_Select(m_Value(A), m_One(), m_Value(B))) && in visitSelectInst() 2773 if (match(TrueVal, m_Select(m_Value(A), m_One(), m_Value(B))) && in visitSelectInst() 2783 match(FalseVal, m_Select(m_Value(A), m_Value(B), m_Zero()))) { in visitSelectInst() 2788 if (match(CondVal, m_Select(m_Value(A), m_Value(B), m_Zero())) && in visitSelectInst() 2798 if (match(CondVal, m_Select(m_Value(C1), m_Value(A), m_Zero())) && in visitSelectInst() [all …]
|
| D | InstCombineMulDivRem.cpp | 109 if (match(&I, m_c_Mul(m_OneUse(m_Select(m_Value(Cond), m_One(), m_AllOnes())), in foldMulSelectToNegate() 115 if (match(&I, m_c_Mul(m_OneUse(m_Select(m_Value(Cond), m_AllOnes(), m_One())), in foldMulSelectToNegate() 121 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()
|
| D | InstCombineAddSub.cpp | 1213 if (!match(Select, m_Select(m_ICmp(Pred, m_Specific(X), m_APInt(Thr)), in canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract() 1800 m_Select(m_Value(), m_Specific(Op1), m_Specific(&I))) || in visitSub() 1801 match(UI, m_Select(m_Value(), m_Specific(&I), m_Specific(Op1))); in visitSub() 2002 if (!match(Select, m_OneUse(m_Select(m_Value(Cond), m_Value(TrueVal), in visitSub() 2226 if (match(Op, m_OneUse(m_Select(m_Value(Cond), m_Value(X), m_Value(Y))))) { in visitFNeg()
|
| D | InstCombineShifts.cpp | 851 if (match(Op0, m_Select(m_Value(Cond), m_OneUse(m_BinOp(TBO)), in FoldShiftByConstant() 870 if (match(Op0, m_Select(m_Value(Cond), m_Value(TrueVal), in FoldShiftByConstant()
|
| D | InstCombineCasts.cpp | 1856 if (match(Op, m_Select(m_Value(Cond), m_FPExt(m_Value(X)), m_Value(Y))) && in visitFPTrunc() 1863 if (match(Op, m_Select(m_Value(Cond), m_Value(Y), m_FPExt(m_Value(X)))) && in visitFPTrunc() 2394 m_OneUse(m_Select(m_Value(Cond), m_Value(TVal), m_Value(FVal))))) in foldBitCastSelect()
|
| D | InstCombineCalls.cpp | 927 if (match(IIOperand, m_Select(m_Value(), m_Value(X), m_Neg(m_Deferred(X))))) in visitCallInst() 929 if (match(IIOperand, m_Select(m_Value(), m_Neg(m_Value(X)), m_Deferred(X)))) in visitCallInst() 1505 m_Select(m_Value(Cond), m_Value(TVal), m_Value(FVal)))) { in visitCallInst()
|
| D | InstructionCombining.cpp | 844 bool LHSIsSelect = match(LHS, m_Select(m_Value(A), m_Value(B), m_Value(C))); in SimplifySelectsFeedingBinaryOp() 845 bool RHSIsSelect = match(RHS, m_Select(m_Value(D), m_Value(E), m_Value(F))); in SimplifySelectsFeedingBinaryOp() 1878 m_Select(m_Value(Cond), m_Constant(TrueC), m_Constant(FalseC)))) in foldSelectGEP()
|
| D | InstCombineLoadStoreAlloca.cpp | 561 if (!match(V, m_Select(m_Cmp(Pred, m_Instruction(L1), m_Instruction(L2)), in isMinMaxWithLoads()
|
| D | InstCombineAndOrXor.cpp | 2904 match(Op0, m_Select(m_Value(X), m_Value(A), m_Value(B))) && in visitOr() 2905 match(Op1, m_Select(m_Value(Y), m_Value(C), m_Value(D))) && X == Y) { in visitOr()
|
| D | InstCombineVectorOps.cpp | 2122 m_OneUse(m_Select(m_Value(Cond), m_Value(X), m_Value(Y))))) in narrowVectorSelect()
|
| D | InstCombineCompares.cpp | 2753 if (!match(UnequalVal, m_Select(m_ICmp(PredB, m_Value(LHS2), m_Value(RHS2)), in matchThreeWayIntCompare() 5703 if (match(Op0, m_Select(m_Value(Cond), m_Value(SelectTrue), in visitICmpInst()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/ |
| D | InstCombiner.h | 258 m_Select(PatternMatch::m_Value(), m_Not(PatternMatch::m_Value()), in isFreeToInvert()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Analysis/ |
| D | IVDescriptors.cpp | 523 if (!match(I, m_Select(m_OneUse(m_Cmp(Pred, m_Value(), m_Value())), m_Value(), in isMinMaxSelectCmpPattern()
|
| D | VectorUtils.cpp | 412 if (match(V, m_Select(m_Value(X), m_Value(Y), m_Value(Z)))) in isSplatValue()
|
| D | InstructionSimplify.cpp | 2114 if (match(Op1, m_Select(m_Specific(Op0), m_Value(), m_Zero()))) in SimplifyAndInst() 2116 else if (match(Op0, m_Select(m_Specific(Op1), m_Value(), m_Zero()))) in SimplifyAndInst() 2303 if (match(Op1, m_Select(m_Specific(Op0), m_One(), m_Value()))) in SimplifyOrInst() 2305 else if (match(Op0, m_Select(m_Specific(Op1), m_One(), m_Value()))) in SimplifyOrInst()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| D | VectorCombine.cpp | 578 if (match(U, m_Select(m_Specific(&I), m_Value(), m_Value()))) in scalarizeBinopOrCmp()
|
| D | SLPVectorizer.cpp | 3995 if ((!match(V, m_Select(MatchCmp, m_Value(), m_Value())) && in getEntryCost() 7323 return match(I, m_Select(m_Cmp(), m_Value(), m_Value())) && in isCmpSelMinMax() 8249 bool IsSelect = match(Inst, m_Select(m_Value(), m_Value(), m_Value())); in tryToVectorizeHorReductionOrInstOperands()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| D | EarlyCSE.cpp | 167 if (!match(V, m_Select(m_Value(Cond), m_Value(A), m_Value(B)))) in matchSelectWithOptionalNotCond()
|
| D | SimpleLoopUnswitch.cpp | 2726 while (match(Cond, m_Select(m_Value(CondNext), m_One(), m_Zero()))) in unswitchBestCondition()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
| D | PatternMatch.h | 1472 m_Select(const Cond &C, const LHS &L, const RHS &R) { in m_Select() function 1482 return m_Select(C, m_ConstantInt<L>(), m_ConstantInt<R>()); in m_SelectCst()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| D | AArch64TargetTransformInfo.cpp | 1447 if (match(I, m_Select(m_Cmp(CurrentPred, m_Value(), m_Value()), m_Value(), in getCmpSelInstrCost()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| D | SimplifyCFG.cpp | 2839 m_CombineOr(m_Select(m_Value(), m_ImmConstant(), m_Value()), in FoldTwoEntryPHINode() 2840 m_Select(m_Value(), m_Value(), m_ImmConstant())))); in FoldTwoEntryPHINode()
|
| D | SimplifyLibCalls.cpp | 191 if (match(Size, m_Select(m_Value(), m_APInt(X), m_APInt(Y)))) { in annotateNonNullAndDereferenceable()
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/ |
| D | CodeGenPrepare.cpp | 6673 m_OneUse(m_Select(m_Value(Cond), m_Value(TVal), m_Value(FVal))))) in optimizeShiftInst() 6708 m_OneUse(m_Select(m_Value(Cond), m_Value(TVal), m_Value(FVal))))) in optimizeFunnelShift()
|