Home
last modified time | relevance | path

Searched refs:m_One (Results 1 – 22 of 22) sorted by relevance

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp515 match(Cmp->getOperand(1), m_Zero()) && match(FVal, m_One()))) in foldSelectICmpAndAnd()
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()
2665 if (match(TrueVal, m_One()) && impliesPoison(FalseVal, CondVal)) { in visitSelectInst()
2706 if (match(CondVal, m_Select(m_Value(A), m_One(), m_Value(B))) && in visitSelectInst()
2707 match(TrueVal, m_One()) && match(FalseVal, m_Specific(B))) in visitSelectInst()
2721 if (match(FalseVal, m_Zero()) || match(TrueVal, m_One())) { in visitSelectInst()
2747 if (match(CondVal, m_Select(m_Value(A), m_One(), m_Value(B))) && in visitSelectInst()
[all …]
H A DInstCombineMulDivRem.cpp63 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()
805 if (match(Op0, m_One())) { in commonIDivTransforms()
1176 m_OneUse(m_Intrinsic<Intrinsic::abs>(m_Value(X), m_One())), in visitSDiv()
1492 if (match(Op0, m_One())) { in visitURem()
H A DInstCombineNegator.cpp178 if (match(Ops[1], m_One())) in visitImpl()
371 if (match(Ops[1], m_One())) in visitImpl()
H A DInstCombineCompares.cpp1730 match(And->getOperand(1), m_One())) in foldICmpAndConstConst()
1793 match(And->getOperand(1), m_One())) { in foldICmpAndConstConst()
1988 if (!match(Shl, m_Shl(m_One(), m_Value(Y)))) in foldICmpShlOne()
2801 if (Pred == ICmpInst::ICMP_SLT && match(Op1, m_One())) in foldICmpBitCast()
3356 m_Add(m_Shl(m_One(), m_Value()), m_AllOnes())), in foldICmpWithLowBitMaskedVal()
3868 if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_SLE && match(B, m_One())) in foldICmpBinOp()
3872 if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_SGT && match(B, m_One())) in foldICmpBinOp()
3886 if (C && NoOp1WrapProblem && Pred == CmpInst::ICMP_SGE && match(D, m_One())) in foldICmpBinOp()
3890 if (C && NoOp1WrapProblem && Pred == CmpInst::ICMP_SLT && match(D, m_One())) in foldICmpBinOp()
3903 if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_ULE && match(B, m_One())) in foldICmpBinOp()
[all …]
H A DInstCombineAddSub.cpp780 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 DInstCombineShifts.cpp213 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 DInstCombineAndOrXor.cpp1816 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 DInstCombineCalls.cpp462 if (match(Op0, m_OneUse(m_ZExt(m_Value(X)))) && match(Op1, m_One())) { in foldCttzCtlz()
503 if (!match(II.getArgOperand(1), m_One())) in foldCttzCtlz()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/ARM/
H A DMVEGatherScatterLowering.cpp410 if (match(Mask, m_One())) in tryCreateMaskedGatherBase()
432 if (match(Mask, m_One())) in tryCreateMaskedGatherBaseWB()
499 if (!match(Mask, m_One())) in tryCreateMaskedGatherOffset()
562 if (match(Mask, m_One())) in tryCreateMaskedScatterBase()
585 if (match(Mask, m_One())) in tryCreateMaskedScatterBaseWB()
639 if (!match(Mask, m_One())) in tryCreateMaskedScatterOffset()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/
H A DSVEIntrinsicOpts.cpp334 return match(SplatValue, m_FPOne()) || match(SplatValue, m_One()); in optimizeVectorMul()
345 return match(SplatValue, m_FPOne()) || match(SplatValue, m_One()); in optimizeVectorMul()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp713 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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp225 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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DLowerConstantIntrinsics.cpp72 } else if (match(BI->getOperand(0), m_One())) { in replaceConditionalBranchesOnConstant()
H A DLoopIdiomRecognize.cpp2135 m_LoopInvariant(m_Shl(m_One(), m_Value(BitPos)), in detectShiftUntilBitTestIdiom()
2169 if (!NextX || !match(NextX, m_Shl(m_Specific(CurrX), m_One()))) { in detectShiftUntilBitTestIdiom()
2500 if (!IVNext || !match(IVNext, m_Add(m_Specific(IVPN), m_One()))) { in detectShiftUntilZeroIdiom()
H A DSimpleLoopUnswitch.cpp2652 while (match(Cond, m_Select(m_Value(CondNext), m_One(), m_Zero()))) in unswitchBestCondition()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DInstructionSimplify.cpp196 if (match(TCmp, m_One())) in handleOtherCmpSelSimplifications()
201 if (match(FCmp, m_One()) && match(TCmp, m_Zero())) in handleOtherCmpSelSimplifications()
877 if (match(Op1, m_One())) in SimplifyMulInst()
975 if (match(Op1, m_One()) || Ty->isIntOrIntVectorTy(1) || in simplifyDivRem()
2267 if (match(Op1, m_Select(m_Specific(Op0), m_One(), m_Value()))) in SimplifyOrInst()
2269 else if (match(Op0, m_Select(m_Specific(Op1), m_One(), m_Value()))) in SimplifyOrInst()
2638 } else if (match(RHS, m_One())) { in simplifyICmpOfBools()
3057 match(LHS, m_Shl(m_One(), m_Value())) || !C->isNullValue()) { in simplifyICmpWithBinOp()
3068 if (match(LHS, m_Shl(m_One(), m_Value())) && match(RHS, m_SignMask())) { in simplifyICmpWithBinOp()
4168 match(TrueVal, m_One()) && match(FalseVal, m_ZeroInt())) in SimplifySelectInst()
[all …]
H A DValueTracking.cpp1521 bool IntMinIsPoison = match(II->getArgOperand(1), m_One()); in computeKnownBitsFromOperator()
1940 if (match(V, m_Shl(m_One(), m_Value()))) in isKnownToBeAPowerOfTwo()
5942 auto ZeroOrOne = m_CombineOr(m_ZeroInt(), m_One()); in matchSelectPattern()
6869 if (match(II.getOperand(1), m_One())) in setLimitsForIntrinsic()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DPatternMatch.h513 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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp615 ((match(Src1, PatternMatch::m_One()) && in instCombineIntrinsic()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DConstantFold.cpp1181 if (match(C2, m_One())) in ConstantFoldBinaryInstruction()
H A DConstants.cpp304 return isa<UndefValue>(CmpEq) || match(CmpEq, m_One()); in isElementWiseEqual()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp2029 if (match(CountZeros->getOperand(1), m_One())) in despeculateCountZeros()