| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineMulDivRem.cpp | 63 match(One, m_One())) { in simplifyValueKnownNonZero() 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() 309 if (match(Op0, m_Shl(m_One(), m_Value(Y)))) { in visitMul() 312 } else if (match(Op1, m_Shl(m_One(), m_Value(Y)))) { in visitMul() 369 m_One()), in visitMul() 811 if (match(Op0, m_One())) { in commonIDivTransforms() 1182 m_OneUse(m_Intrinsic<Intrinsic::abs>(m_Value(X), m_One())), in visitSDiv() 1501 if (match(Op0, m_One())) { in visitURem()
|
| H A D | InstCombineSelect.cpp | 520 if (!match(TVal, m_OneUse(m_And(m_Value(B), m_One())))) in foldSelectICmpAndAnd() 936 !match(II->getArgOperand(1), m_One())) in foldSelectCttzCtlz() 1342 if (!match(Precond1, m_One())) in canonicalizeClampLike() 1347 if (!match(Precond2, m_One())) in canonicalizeClampLike() 2725 match(TrueVal, m_One()) && match(FalseVal, m_Specific(B))) in visitSelectInst() 2741 if (match(FalseVal, m_Zero()) || match(TrueVal, m_One())) { in visitSelectInst() 2782 if (match(TrueVal, m_One()) && in visitSelectInst() 2789 match(TrueVal, m_One())) { in visitSelectInst() 2799 match(TrueVal, m_One()) && in visitSelectInst() 2820 if (match(TrueVal, m_One()) && match(FalseVal, m_Zero())) in visitSelectInst() [all …]
|
| H A D | InstCombineNegator.cpp | 178 if (match(Ops[1], m_One())) in visitImpl() 371 if (match(Ops[1], m_One())) in visitImpl()
|
| H A D | InstCombineCompares.cpp | 1753 match(And->getOperand(1), m_One())) in foldICmpAndConstConst() 1816 match(And->getOperand(1), m_One())) { in foldICmpAndConstConst() 2024 if (!match(Shl, m_Shl(m_One(), m_Value(Y)))) in foldICmpShlOne() 2859 if (Pred == ICmpInst::ICMP_SLT && match(Op1, m_One())) in foldICmpBitCast() 3424 m_Add(m_Shl(m_One(), m_Value()), m_AllOnes())), in foldICmpWithLowBitMaskedVal() 3936 if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_SLE && match(B, m_One())) in foldICmpBinOp() 4634 return match(RHS, m_One()); in isNeutralValue() 5262 if (match(LHS, m_Shl(m_One(), m_Value(X)))) { in foldICmpUsingKnownBits() 5500 } else if (match(B, m_One())) { in canonicalizeICmpBool() 5581 m_Add(m_Shl(m_One(), m_Value(Y)), in foldICmpWithHighBitMask() [all …]
|
| H A D | InstCombineAddSub.cpp | 780 if (match(RHS, m_Add(m_Value(X), m_One()))) in checkForNegativeOperand() 783 if (match(LHS, m_Add(m_Value(X), m_One()))) { in checkForNegativeOperand() 1112 if (!match(&I, m_Add(m_OneUse(m_Shl(m_One(), m_Value(NBits))), m_AllOnes()))) in canonicalizeLowbitMask() 1236 ? !match(SignExtendingValueBaseConstant, m_One()) in canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract() 1346 if (match(&I, m_c_BinOp(m_Add(m_Value(A), m_One()), m_Not(m_Value(B)))) || in visitAdd() 1347 match(&I, m_BinOp(m_c_Add(m_Not(m_Value(B)), m_Value(A)), m_One()))) in visitAdd()
|
| H A D | InstCombineShifts.cpp | 213 auto MaskA = m_Add(m_Shl(m_One(), m_Value(MaskShAmt)), m_AllOnes()); in dropRedundantMaskingOfLeftShiftInput() 1030 if (match(Op0, m_One()) && in visitShl()
|
| H A D | InstCombineCalls.cpp | 454 assert(match(Op1, m_One()) && "Expected ctlz/cttz operand to be 0 or 1"); in foldCttzCtlz() 478 if (match(Op0, m_OneUse(m_ZExt(m_Value(X)))) && match(Op1, m_One())) { in foldCttzCtlz() 519 if (!match(II.getArgOperand(1), m_One())) in foldCttzCtlz() 962 if (match(I1, m_One())) { in visitCallInst()
|
| H A D | InstCombineAndOrXor.cpp | 1816 if (match(Op0, m_OneUse(m_LogicalShift(m_One(), m_Value(X)))) && in visitAnd() 1817 match(Op1, m_One())) { in visitAnd() 2962 if (match(&I, m_c_Or(m_Add(m_Shl(m_One(), m_Value(X)), m_AllOnes()), in visitOr() 2963 m_Shl(m_One(), m_Deferred(X)))) && in visitOr()
|
| H A D | InstCombineCasts.cpp | 1055 m_OneUse(m_c_And(m_Shl(m_One(), m_Value(ShAmt)), m_Value(X))))) { in transformZExtICmp()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | MVEGatherScatterLowering.cpp | 448 if (match(Mask, m_One())) in tryCreateMaskedGatherBase() 469 if (match(Mask, m_One())) in tryCreateMaskedGatherBaseWB() 543 if (!match(Mask, m_One())) in tryCreateMaskedGatherOffset() 614 if (match(Mask, m_One())) in tryCreateMaskedScatterBase() 636 if (match(Mask, m_One())) in tryCreateMaskedScatterBaseWB() 695 if (!match(Mask, m_One())) in tryCreateMaskedScatterOffset()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/ |
| H A D | AggressiveInstCombine.cpp | 225 if (match(V, m_And(m_Value(Op0), m_One()))) { in matchAndOrChain() 271 else if (match(&I, m_And(m_OneUse(m_Or(m_Value(), m_Value())), m_One()))) in foldAnyOrAllBitsSet()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonLoopIdiomRecognition.cpp | 713 if (match(A, m_Shl(m_One(), m_Specific(CIV)))) { in matchLeftShift() 716 } else if (match(B, m_Shl(m_One(), m_Specific(CIV)))) { in matchLeftShift() 826 } else if (match(CondV, m_ICmp(P, m_Value(C), m_One())) || in matchRightShift() 827 match(CondV, m_ICmp(P, m_One(), m_Value(C)))) { in matchRightShift() 837 if (!match(C, m_And(m_Value(X), m_One())) && in matchRightShift() 838 !match(C, m_And(m_One(), m_Value(X)))) in matchRightShift() 847 if (!match(TrueV, m_LShr(m_Value(R), m_One()))) in matchRightShift() 858 if (!match(FalseV, m_LShr(m_Value(R), m_One()))) in matchRightShift() 1329 if (!match(&I, m_LShr(m_Value(V), m_One()))) in convertShiftsToLeft() 1419 if (match(&*I, m_LShr(m_Value(V), m_One()))) { in convertShiftsToLeft()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LowerConstantIntrinsics.cpp | 72 } else if (match(BI->getOperand(0), m_One())) { in replaceConditionalBranchesOnConstant()
|
| H A D | LoopIdiomRecognize.cpp | 2181 m_LoopInvariant(m_Shl(m_One(), m_Value(BitPos)), in detectShiftUntilBitTestIdiom() 2218 if (!NextX || !match(NextX, m_Shl(m_Specific(CurrX), m_One()))) { in detectShiftUntilBitTestIdiom() 2553 if (!IVNext || !match(IVNext, m_Add(m_Specific(IVPN), m_One()))) { in detectShiftUntilZeroIdiom()
|
| H A D | SimpleLoopUnswitch.cpp | 2726 while (match(Cond, m_Select(m_Value(CondNext), m_One(), m_Zero()))) in unswitchBestCondition()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | InstructionSimplify.cpp | 202 if (match(TCmp, m_One()) && impliesPoison(FCmp, Cond)) in handleOtherCmpSelSimplifications() 207 if (match(FCmp, m_One()) && match(TCmp, m_Zero())) in handleOtherCmpSelSimplifications() 892 if (match(Op1, m_One())) in SimplifyMulInst() 998 if (match(Op1, m_One()) || Ty->isIntOrIntVectorTy(1) || in simplifyDivRem() 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() 2674 } else if (match(RHS, m_One())) { in simplifyICmpOfBools() 3093 match(LHS, m_Shl(m_One(), m_Value())) || !C->isNullValue()) { in simplifyICmpWithBinOp() 4223 if (match(CondC, m_One())) in SimplifySelectInst() 4235 match(TrueVal, m_One()) && match(FalseVal, m_ZeroInt())) in SimplifySelectInst() [all …]
|
| H A D | ValueTracking.cpp | 1563 bool IntMinIsPoison = match(II->getArgOperand(1), m_One()); in computeKnownBitsFromOperator() 1982 if (match(V, m_Shl(m_One(), m_Value()))) in isKnownToBeAPowerOfTwo() 6000 auto ZeroOrOne = m_CombineOr(m_ZeroInt(), m_One()); in matchSelectPattern() 6936 if (match(II.getOperand(1), m_One())) in setLimitsForIntrinsic()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | PatternMatch.h | 513 inline cst_pred_ty<is_one> m_One() { in m_One() function 2008 (m_One().match(AddLHS) || m_One().match(AddRHS))) in match() 2013 (m_One().match(AddLHS) || m_One().match(AddRHS))) in match()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUInstCombineIntrinsic.cpp | 615 ((match(Src1, PatternMatch::m_One()) && in instCombineIntrinsic()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64TargetTransformInfo.cpp | 731 return match(SplatValue, m_FPOne()) || match(SplatValue, m_One()); in instCombineSVEVectorMul() 742 return match(SplatValue, m_FPOne()) || match(SplatValue, m_One()); in instCombineSVEVectorMul()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantFold.cpp | 930 if (match(C2, m_One())) in ConstantFoldBinaryInstruction()
|
| H A D | Constants.cpp | 303 return isa<UndefValue>(CmpEq) || match(CmpEq, m_One()); in isElementWiseEqual()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | CodeGenPrepare.cpp | 2029 if (match(CountZeros->getOperand(1), m_One())) in despeculateCountZeros()
|