| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineMulDivRem.cpp | 59 match(One, m_One())) { in simplifyValueKnownNonZero() 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() 414 (match(Op0, m_And(m_Value(), m_One())) && in visitMul() 415 match(Op1, m_And(m_Value(), m_One())))) in visitMul() 489 m_One()), in visitMul() 1140 if (match(Op0, m_One())) { in commonIDivTransforms() 1481 if (match(Op1, m_NSWShl(m_One(), m_Value(ShAmt)))) in visitSDiv() 2034 if (match(Op0, m_One())) { in visitURem() 2061 if (match(Op0, m_Add(m_Value(X), m_One()))) { in visitURem() [all …]
|
| H A D | InstCombineNegator.cpp | 171 if (match(Ops[1], m_One())) in visitImpl() 263 m_One()))) { in visitImpl() 407 if (match(Ops[1], m_One())) in visitImpl()
|
| H A D | InstCombineSelect.cpp | 580 if (!match(TVal, m_OneUse(m_And(m_Value(B), m_One())))) in foldSelectICmpAndAnd() 1168 !match(II->getArgOperand(1), m_One())) in foldSelectCttzCtlz() 1487 if (!match(Precond1, m_One())) in canonicalizeClampLike() 1492 if (!match(Precond2, m_One())) in canonicalizeClampLike() 2619 if (match(TrueVal, m_One()) && in foldSelectWithSRem() 2957 if (match(TrueVal, m_One())) { in foldSelectOfBools() 3148 if (match(TrueVal, m_One()) && in foldSelectOfBools() 3155 match(TrueVal, m_One())) { in foldSelectOfBools() 3161 if (match(TrueVal, m_One())) { in foldSelectOfBools() 3308 if (match(TrueVal, m_One())) { in foldBitCeil() [all …]
|
| H A D | InstCombineCompares.cpp | 1735 match(And->getOperand(1), m_One())) in foldICmpAndConstConst() 1803 match(And->getOperand(1), m_One())) { in foldICmpAndConstConst() 2173 if (!match(Shl, m_Shl(m_One(), m_Value(Y)))) in foldICmpShlOne() 3193 if (Pred == ICmpInst::ICMP_SLT && match(Op1, m_One())) in foldICmpBitCast() 5019 if (match(Op0, m_Shl(m_Specific(Op1), m_One()))) in foldICmpBinOp() 5022 else if (match(Op1, m_Shl(m_Specific(Op0), m_One()))) in foldICmpBinOp() 5068 if (match(Val, m_One())) in foldICmpWithMinMax() 5536 if (match(II->getArgOperand(1), m_One())) in foldICmpWithTrunc() 5724 match(RHS, m_One()); in isNeutralValue() 6588 } else if (match(B, m_One())) { in canonicalizeICmpBool() [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() 898 match(Op1, m_One())) in foldAddWithConstant() 1174 if (!match(&I, m_Add(m_OneUse(m_Shl(m_One(), m_Value(NBits))), m_AllOnes()))) in canonicalizeLowbitMask() 1352 ? !match(SignExtendingValueBaseConstant, m_One()) in canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract() 1519 if (match(&I, m_c_BinOp(m_Add(m_Value(A), m_One()), m_Not(m_Value(B)))) || in visitAdd() 1520 match(&I, m_BinOp(m_c_Add(m_Not(m_Value(B)), m_Value(A)), m_One()))) in visitAdd() 1737 m_One())), in visitAdd() 1740 m_Intrinsic<Intrinsic::ctlz>(m_Deferred(A), m_One())))), in visitAdd()
|
| H A D | InstCombineCalls.cpp | 516 assert(match(Op1, m_One()) && "Expected ctlz/cttz operand to be 0 or 1"); in foldCttzCtlz() 541 if (match(Op0, m_OneUse(m_ZExt(m_Value(X)))) && match(Op1, m_One())) { in foldCttzCtlz() 560 match(Op1, m_One())) { in foldCttzCtlz() 568 match(Op1, m_One())) { in foldCttzCtlz() 576 match(Op1, m_One())) { in foldCttzCtlz() 584 match(Op1, m_One())) { in foldCttzCtlz() 614 if (!match(II.getArgOperand(1), m_One())) in foldCttzCtlz() 1620 if (match(I1, m_One())) { in visitCallInst()
|
| H A D | InstCombineAndOrXor.cpp | 2223 if (match(Op0, m_OneUse(m_LogicalShift(m_One(), m_Value(X)))) && in visitAnd() 2224 match(Op1, m_One())) { in visitAnd() 2235 m_OneUse(m_Neg(m_And(m_Value(), m_One())))), in visitAnd() 3822 if (match(&I, m_c_Or(m_Add(m_Shl(m_One(), m_Value(X)), m_AllOnes()), in visitOr() 3823 m_Shl(m_One(), m_Deferred(X)))) && in visitOr() 4625 match(II->getArgOperand(1), m_One()) && in visitXor()
|
| H A D | InstCombineShifts.cpp | 217 auto MaskA = m_Add(m_Shl(m_One(), m_Value(MaskShAmt)), m_AllOnes()); in dropRedundantMaskingOfLeftShiftInput() 1217 if (match(Op0, m_One())) { in visitShl()
|
| H A D | InstCombineCasts.cpp | 961 m_OneUse(m_c_And(m_Shl(m_One(), m_Value(ShAmt)), m_Value(X))))) { in transformZExtICmp()
|
| /freebsd-14.2/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-14.2/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() 824 } else if (match(CondV, m_ICmp(P, m_Value(C), m_One())) || in matchRightShift() 825 match(CondV, m_ICmp(P, m_One(), m_Value(C)))) { in matchRightShift() 835 if (!match(C, m_And(m_Value(X), m_One())) && in matchRightShift() 836 !match(C, m_And(m_One(), m_Value(X)))) in matchRightShift() 845 if (!match(TrueV, m_LShr(m_Value(R), m_One()))) in matchRightShift() 856 if (!match(FalseV, m_LShr(m_Value(R), m_One()))) in matchRightShift() 1326 if (!match(&I, m_LShr(m_Value(V), m_One()))) in convertShiftsToLeft() 1416 if (match(&*I, m_LShr(m_Value(V), m_One()))) { in convertShiftsToLeft()
|
| /freebsd-14.2/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 | 2241 m_LoopInvariant(m_Shl(m_One(), m_Value(BitPos)), in detectShiftUntilBitTestIdiom() 2278 if (!NextX || !match(NextX, m_Shl(m_Specific(CurrX), m_One()))) { in detectShiftUntilBitTestIdiom() 2631 if (!IVNext || !match(IVNext, m_Add(m_Specific(IVPN), m_One()))) { in detectShiftUntilZeroIdiom()
|
| H A D | SimpleLoopUnswitch.cpp | 178 while (match(Cond, m_Select(m_Value(CondNext), m_One(), m_Zero()))) in skipTrivialSelect()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/ |
| H A D | AggressiveInstCombine.cpp | 198 if (match(V, m_And(m_Value(Op0), m_One()))) { in matchAndOrChain() 244 else if (match(&I, m_And(m_OneUse(m_Or(m_Value(), m_Value())), m_One()))) in foldAnyOrAllBitsSet()
|
| /freebsd-14.2/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() 944 if (match(Op1, m_One())) in simplifyMulInst() 2910 } else if (match(RHS, m_One())) { in simplifyICmpOfBools() 3381 match(LHS, m_Shl(m_One(), m_Value())) || !C->isZero()) { in simplifyICmpWithBinOp() 4789 if (match(CondC, m_One())) in simplifySelectInst() 4802 if (match(TrueVal, m_One()) && match(FalseVal, m_ZeroInt())) in simplifySelectInst() 4845 if (match(TrueVal, m_One())) { in simplifySelectInst() 4871 if (match(FalseVal, m_One())) in simplifySelectInst() 4876 if (match(TrueVal, m_One())) in simplifySelectInst() [all …]
|
| H A D | ValueTracking.cpp | 1445 bool IntMinIsPoison = match(II->getArgOperand(1), m_One()); in computeKnownBitsFromOperator() 1955 if (match(I, m_Shl(m_One(), m_Value()))) in isKnownToBeAPowerOfTwo() 7780 auto ZeroOrOne = m_CombineOr(m_ZeroInt(), m_One()); in matchSelectPattern() 8794 if (match(II.getOperand(1), m_One())) in getRangeForIntrinsic()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | PatternMatch.h | 525 inline cst_pred_ty<is_one> m_One() { return cst_pred_ty<is_one>(); } in m_One() function 2138 (m_One().match(AddLHS) || m_One().match(AddRHS))) in match() 2143 (m_One().match(AddLHS) || m_One().match(AddRHS))) in match()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64LoopIdiomTransform.cpp | 271 !match(Index, m_c_Add(m_Specific(PN), m_One()))) in recognizeByteCompare()
|
| H A D | AArch64TargetTransformInfo.cpp | 1557 return match(SplatValue, m_FPOne()) || match(SplatValue, m_One()); in instCombineSVEVectorMul() 1568 return match(SplatValue, m_FPOne()) || match(SplatValue, m_One()); in instCombineSVEVectorMul()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUInstCombineIntrinsic.cpp | 901 ((match(Src1, PatternMatch::m_One()) && in instCombineIntrinsic()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Constants.cpp | 305 return isa<UndefValue>(CmpEq) || match(CmpEq, m_One()); in isElementWiseEqual()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | CodeGenPrepare.cpp | 2265 if (match(CountZeros->getOperand(1), m_One())) in despeculateCountZeros()
|