/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineMulDivRem.cpp | 59 match(One, m_One())) { in simplifyValueKnownNonZero() 105 if (match(&I, m_c_Mul(m_OneUse(m_Select(m_Value(Cond), m_One(), m_AllOnes())), in foldMulSelectToNegate() 113 if (match(&I, m_c_Mul(m_OneUse(m_Select(m_Value(Cond), m_AllOnes(), m_One())), in foldMulSelectToNegate() 156 if (match(Y, m_Shl(m_One(), m_Value(Z)))) { in foldMulShl1() 166 if (match(Y, m_OneUse(m_Add(m_BinOp(Shift), m_One()))) && in foldMulShl1() 167 match(Shift, m_OneUse(m_Shl(m_One(), m_Value(Z))))) { in foldMulShl1() 337 m_OneUse(m_Intrinsic<Intrinsic::abs>(m_Value(X), m_One()))) && in visitMul() 338 match(Op1, m_OneUse(m_Intrinsic<Intrinsic::abs>(m_Value(Y), m_One())))) in visitMul() 437 (match(Op0, m_And(m_Value(), m_One())) && in visitMul() 438 match(Op1, m_And(m_Value(), m_One())))) in visitMul() [all …]
|
H A D | InstCombineNegator.cpp | 171 if (match(Ops[1], m_One())) in visitImpl() 268 m_One()))) { in visitImpl() 424 if (match(Ops[1], m_One())) in visitImpl()
|
H A D | InstCombineSelect.cpp | 591 match(Cmp->getOperand(1), m_Zero()) && match(FVal, m_One()))) in foldSelectICmpAndAnd() 596 if (!match(TVal, m_OneUse(m_And(m_Value(B), m_One())))) in foldSelectICmpAndAnd() 1187 !match(II->getArgOperand(1), m_One())) in foldSelectCttzCtlz() 1525 if (!Precond1 || !match(Precond1, m_One())) in canonicalizeClampLike() 1530 if (!Precond2 || !match(Precond2, m_One())) in canonicalizeClampLike() 2760 if (match(TrueVal, m_One()) && in foldSelectWithSRem() 3142 if (match(TrueVal, m_One())) { in foldSelectOfBools() 3148 if (match(CondVal, m_OneUse(m_Select(m_Value(A), m_One(), m_Value(B)))) && in foldSelectOfBools() 3266 if (match(CondVal, m_Select(m_Value(A), m_One(), m_Value(B))) && in foldSelectOfBools() 3267 match(TrueVal, m_One()) && match(FalseVal, m_Specific(B))) in foldSelectOfBools() [all …]
|
H A D | InstCombineCompares.cpp | 1439 if (Cmp.isEquality() && match(X, m_Shl(m_One(), m_Value(Y)))) { in foldICmpTruncConstant() 1752 match(And->getOperand(1), m_One())) in foldICmpAndConstConst() 1820 match(And->getOperand(1), m_One())) { in foldICmpAndConstConst() 2233 if (!match(Shl, m_Shl(m_One(), m_Value(Y)))) in foldICmpShlOne() 3288 if (Pred == ICmpInst::ICMP_SLT && match(Op1, m_One())) in foldICmpBitCast() 5046 if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_SLE && match(B, m_One())) in foldICmpBinOp() 5050 if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_SGT && match(B, m_One())) in foldICmpBinOp() 5064 if (C && NoOp1WrapProblem && Pred == CmpInst::ICMP_SGE && match(D, m_One())) in foldICmpBinOp() 5068 if (C && NoOp1WrapProblem && Pred == CmpInst::ICMP_SLT && match(D, m_One())) in foldICmpBinOp() 5081 if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_ULE && match(B, m_One())) in foldICmpBinOp() [all …]
|
H A D | InstCombineAddSub.cpp | 765 if (match(RHS, m_Add(m_Value(X), m_One()))) in checkForNegativeOperand() 768 if (match(LHS, m_Add(m_Value(X), m_One()))) { in checkForNegativeOperand() 905 match(Op1, m_One())) in foldAddWithConstant() 1216 if (!match(&I, m_Add(m_OneUse(m_Shl(m_One(), m_Value(NBits))), m_AllOnes()))) in canonicalizeLowbitMask() 1394 ? !match(SignExtendingValueBaseConstant, m_One()) in canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract() 1561 if (match(&I, m_c_BinOp(m_Add(m_Value(A), m_One()), m_Not(m_Value(B)))) || in visitAdd() 1562 match(&I, m_BinOp(m_c_Add(m_Not(m_Value(B)), m_Value(A)), m_One()))) in visitAdd() 1797 m_One())), in visitAdd() 1800 m_Intrinsic<Intrinsic::ctlz>(m_Deferred(A), m_One())))), in visitAdd()
|
H A D | InstCombineCalls.cpp | 503 assert(match(Op1, m_One()) && "Expected ctlz/cttz operand to be 0 or 1"); in foldCttzCtlz() 535 if (match(Op0, m_OneUse(m_ZExt(m_Value(X)))) && match(Op1, m_One())) { in foldCttzCtlz() 554 match(Op1, m_One())) { in foldCttzCtlz() 562 match(Op1, m_One())) { in foldCttzCtlz() 569 if (match(Op0, m_Add(m_LShr(m_AllOnes(), m_Value(X)), m_One()))) { in foldCttzCtlz() 577 match(Op1, m_One())) { in foldCttzCtlz() 585 match(Op1, m_One())) { in foldCttzCtlz() 614 if (!match(II.getArgOperand(1), m_One())) in foldCttzCtlz() 1696 if (match(I1, m_One())) { in visitCallInst() 2057 m_One()) && in visitCallInst()
|
H A D | InstCombineShifts.cpp | 217 auto MaskA = m_Add(m_Shl(m_One(), m_Value(MaskShAmt)), m_AllOnes()); in dropRedundantMaskingOfLeftShiftInput() 1238 if (match(Op0, m_One())) { in visitShl() 1291 if (match(Op0, m_Add(m_Value(X), m_Value(Y))) && match(Op1, m_One()) && in visitLShr()
|
H A D | InstCombineAndOrXor.cpp | 734 match(Pow2, m_One()) || in foldAndOrOfICmpsWithPow2AndWithZero() 2348 if ((match(Op0, m_OneUse(m_LogicalShift(m_One(), m_Value(X)))) || in visitAnd() 2350 match(Op1, m_One())) { in visitAnd() 2361 m_OneUse(m_Neg(m_And(m_Value(), m_One())))), in visitAnd() 3941 if (match(&I, m_c_Or(m_Add(m_Shl(m_One(), m_Value(X)), m_AllOnes()), in visitOr() 3942 m_Shl(m_One(), m_Deferred(X)))) && in visitOr() 4751 match(II->getArgOperand(1), m_One()) && in visitXor()
|
H A D | InstCombineCasts.cpp | 995 m_OneUse(m_c_And(m_Shl(m_One(), m_Value(ShAmt)), m_Value(X))))) { in transformZExtICmp()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | MVEGatherScatterLowering.cpp | 463 if (match(Mask, m_One())) in tryCreateMaskedGatherBase() 484 if (match(Mask, m_One())) in tryCreateMaskedGatherBaseWB() 558 if (!match(Mask, m_One())) in tryCreateMaskedGatherOffset() 629 if (match(Mask, m_One())) in tryCreateMaskedScatterBase() 651 if (match(Mask, m_One())) in tryCreateMaskedScatterBaseWB() 710 if (!match(Mask, m_One())) in tryCreateMaskedScatterOffset()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | LowerConstantIntrinsics.cpp | 78 } else if (match(BI->getOperand(0), m_One())) { in replaceConditionalBranchesOnConstant()
|
H A D | LoopIdiomRecognize.cpp | 2458 m_LoopInvariant(m_Shl(m_One(), m_Value(BitPos)), in detectShiftUntilBitTestIdiom() 2495 if (!NextX || !match(NextX, m_Shl(m_Specific(CurrX), m_One()))) { in detectShiftUntilBitTestIdiom() 2848 if (!IVNext || !match(IVNext, m_Add(m_Specific(IVPN), m_One()))) { in detectShiftUntilZeroIdiom()
|
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/lib/Target/Hexagon/ |
H A D | HexagonLoopIdiomRecognition.cpp | 711 if (match(A, m_Shl(m_One(), m_Specific(CIV)))) { in matchLeftShift() 714 } else if (match(B, m_Shl(m_One(), m_Specific(CIV)))) { in matchLeftShift() 822 } else if (match(CondV, m_c_ICmp(P, m_Value(C), m_One()))) { in matchRightShift() 832 if (!match(C, m_And(m_Value(X), m_One()))) in matchRightShift() 841 if (!match(TrueV, m_LShr(m_Value(R), m_One()))) in matchRightShift() 851 if (!match(FalseV, m_LShr(m_Value(R), m_One()))) in matchRightShift() 1320 if (!match(&I, m_LShr(m_Value(V), m_One()))) in convertShiftsToLeft() 1410 if (match(&*I, m_LShr(m_Value(V), m_One()))) { in convertShiftsToLeft()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | InstructionSimplify.cpp | 203 if (match(TCmp, m_One()) && impliesPoison(FCmp, Cond)) in handleOtherCmpSelSimplifications() 208 if (match(FCmp, m_One()) && match(TCmp, m_Zero())) in handleOtherCmpSelSimplifications() 945 if (match(Op1, m_One())) in simplifyMulInst() 2447 if (match(Op1, m_Select(m_Specific(Op0), m_One(), m_Value()))) in simplifyOrInst() 2449 else if (match(Op0, m_Select(m_Specific(Op1), m_One(), m_Value()))) in simplifyOrInst() 2913 } else if (match(RHS, m_One())) { in simplifyICmpOfBools() 3381 match(LHS, m_Shl(m_One(), m_Value())) || !C->isZero()) { in simplifyICmpWithBinOp() 4815 if (match(CondC, m_One())) in simplifySelectInst() 4828 if (match(TrueVal, m_One()) && match(FalseVal, m_ZeroInt())) in simplifySelectInst() 4871 if (match(TrueVal, m_One())) { in simplifySelectInst() [all …]
|
H A D | ValueTracking.cpp | 1634 bool IntMinIsPoison = match(II->getArgOperand(1), m_One()); in computeKnownBitsFromOperator() 2243 if (match(I, m_Shl(m_One(), m_Value()))) in isKnownToBeAPowerOfTwo() 2320 if (match(I, m_Add(m_LShr(m_AllOnes(), m_Value()), m_One()))) in isKnownToBeAPowerOfTwo() 8535 auto ZeroOrOne = m_CombineOr(m_ZeroInt(), m_One()); in matchSelectPattern() 9601 if (match(II.getOperand(1), m_One())) in getRangeForIntrinsic()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/ |
H A D | AggressiveInstCombine.cpp | 210 if (match(V, m_And(m_Value(Op0), m_One()))) { in matchAndOrChain() 256 else if (match(&I, m_And(m_OneUse(m_Or(m_Value(), m_Value())), m_One()))) in foldAnyOrAllBitsSet()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | PatternMatch.h | 592 inline cst_pred_ty<is_one> m_One() { return cst_pred_ty<is_one>(); } in m_One() function 2441 (m_One().match(AddLHS) || m_One().match(AddRHS))) in match() 2446 (m_One().match(AddLHS) || m_One().match(AddRHS))) in match()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | LoopIdiomVectorize.cpp | 257 !match(Index, m_c_Add(m_Specific(PN), m_One()))) in recognizeByteCompare()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | SDPatternMatch.h | 776 inline SpecificInt_match m_One() { return m_SpecificInt(1U); }
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUInstCombineIntrinsic.cpp | 900 ((match(Src1, PatternMatch::m_One()) && in instCombineIntrinsic()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86InstCombineIntrinsic.cpp | 526 if (match(Arg0, m_One())) in simplifyX86pmulh() 529 if (match(Arg1, m_One())) in simplifyX86pmulh()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64TargetTransformInfo.cpp | 1702 return match(SplatValue, m_FPOne()) || match(SplatValue, m_One()); in instCombineSVEVectorMul() 1713 return match(SplatValue, m_FPOne()) || match(SplatValue, m_One()); in instCombineSVEVectorMul()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Constants.cpp | 319 return CmpEq && (isa<PoisonValue>(CmpEq) || match(CmpEq, m_One())); in isElementWiseEqual()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | CodeGenPrepare.cpp | 2298 if (match(CountZeros->getOperand(1), m_One())) in despeculateCountZeros()
|