| /freebsd-12.1/contrib/llvm/lib/Transforms/AggressiveInstCombine/ |
| H A D | AggressiveInstCombine.cpp | 183 if (match(V, m_And(m_Value(Op0), m_One()))) { in matchAndOrChain() 229 else if (match(&I, m_And(m_OneUse(m_Or(m_Value(), m_Value())), m_One()))) in foldAnyOrAllBitsSet()
|
| /freebsd-12.1/contrib/llvm/lib/Target/Hexagon/ |
| H A D | HexagonLoopIdiomRecognition.cpp | 694 if (match(A, m_Shl(m_One(), m_Specific(CIV)))) { in matchLeftShift() 697 } else if (match(B, m_Shl(m_One(), m_Specific(CIV)))) { in matchLeftShift() 807 } else if (match(CondV, m_ICmp(P, m_Value(C), m_One())) || in matchRightShift() 808 match(CondV, m_ICmp(P, m_One(), m_Value(C)))) { in matchRightShift() 818 if (!match(C, m_And(m_Value(X), m_One())) && in matchRightShift() 819 !match(C, m_And(m_One(), m_Value(X)))) in matchRightShift() 828 if (!match(TrueV, m_LShr(m_Value(R), m_One()))) in matchRightShift() 839 if (!match(FalseV, m_LShr(m_Value(R), m_One()))) in matchRightShift() 1308 if (!match(&I, m_LShr(m_Value(V), m_One()))) in convertShiftsToLeft() 1398 if (match(&*I, m_LShr(m_Value(V), m_One()))) { in convertShiftsToLeft()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCompares.cpp | 1631 C1.isNullValue() && match(And->getOperand(1), m_One())) in foldICmpAndConstConst() 1673 match(And->getOperand(1), m_One())) { in foldICmpAndConstConst() 1840 if (!match(Shl, m_Shl(m_One(), m_Value(Y)))) in foldICmpShlOne() 2943 m_Add(m_Shl(m_One(), m_Value()), m_AllOnes())), in foldICmpWithLowBitMaskedVal() 3195 if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_SLE && match(B, m_One())) in foldICmpBinOp() 3199 if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_SGT && match(B, m_One())) in foldICmpBinOp() 3903 if (match(RHS, m_One())) in OptimizeOverflowCheck() 4400 if (match(LHS, m_Shl(m_One(), m_Value(X)))) { in foldICmpUsingKnownBits() 4630 } else if (match(B, m_One())) { in canonicalizeICmpBool() 4715 m_Add(m_Shl(m_One(), m_Value(Y)), in foldICmpWithHighBitMask() [all …]
|
| H A D | InstCombineSelect.cpp | 495 match(Cmp->getOperand(1), m_Zero()) && match(FVal, m_One()))) in foldSelectICmpAndAnd() 500 if (!match(TVal, m_OneUse(m_And(m_Value(B), m_One())))) in foldSelectICmpAndAnd() 734 if (II->hasOneUse() && !match(II->getArgOperand(1), m_One())) in foldSelectCttzCtlz() 1658 if (match(TrueVal, m_One())) { in visitSelectInst() 1671 if (match(FalseVal, m_One())) { in visitSelectInst() 1701 if (match(TrueVal, m_One()) && match(FalseVal, m_Zero())) in visitSelectInst() 1709 if (match(TrueVal, m_Zero()) && match(FalseVal, m_One())) { in visitSelectInst()
|
| H A D | InstCombineMulDivRem.cpp | 63 match(One, m_One())) { in simplifyValueKnownNonZero() 295 if (match(Op0, m_Shl(m_One(), m_Value(Y)))) { in visitMul() 298 } else if (match(Op1, m_Shl(m_One(), m_Value(Y)))) { in visitMul() 676 if (match(Op0, m_One())) { in commonIDivTransforms() 1262 if (match(Op0, m_One())) in visitURem()
|
| H A D | InstCombineAddSub.cpp | 783 if (match(RHS, m_Add(m_Value(X), m_One()))) in checkForNegativeOperand() 786 if (match(LHS, m_Add(m_Value(X), m_One()))) { in checkForNegativeOperand() 1020 if (!match(&I, m_Add(m_OneUse(m_Shl(m_One(), m_Value(NBits))), m_AllOnes()))) in canonicalizeLowbitMask() 1131 if (match(&I, m_c_BinOp(m_Add(m_Value(A), m_One()), m_Not(m_Value(B))))) in visitAdd() 1500 if (match(Op1, m_OneUse(m_Add(m_Value(X), m_One())))) in visitSub()
|
| H A D | InstCombineCalls.cpp | 1306 if (!match(II.getArgOperand(1), m_One())) { in foldCttzCtlz() 3744 ((match(Src1, m_One()) && match(Src0, m_ZExt(m_Value(ExtSrc)))) || in visitCallInst()
|
| H A D | InstCombineAndOrXor.cpp | 1561 if (match(Op0, m_OneUse(m_LogicalShift(m_One(), m_Value(X)))) && in visitAnd()
|
| /freebsd-12.1/contrib/llvm/lib/Analysis/ |
| H A D | InstructionSimplify.cpp | 461 if (match(TCmp, m_One())) in ThreadCmpOverSelect() 466 if (match(FCmp, m_One()) && match(TCmp, m_Zero())) in ThreadCmpOverSelect() 859 if (match(Op1, m_One())) in SimplifyMulInst() 955 if (match(Op1, m_One()) || Ty->isIntOrIntVectorTy(1) || in simplifyDivRem() 2366 } else if (match(RHS, m_One())) { in simplifyICmpOfBools()
|
| H A D | ValueTracking.cpp | 1716 if (match(V, m_Shl(m_One(), m_Value()))) in isKnownToBeAPowerOfTwo() 4921 auto ZeroOrOne = m_CombineOr(m_ZeroInt(), m_One()); in matchSelectPattern()
|
| /freebsd-12.1/contrib/llvm/include/llvm/IR/ |
| H A D | PatternMatch.h | 355 inline cst_pred_ty<is_one> m_One() { in m_One() function
|
| /freebsd-12.1/contrib/llvm/lib/IR/ |
| H A D | ConstantFold.cpp | 961 if (match(C2, m_Zero()) || match(C2, m_One())) in ConstantFoldBinaryInstruction()
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/ |
| H A D | CodeGenPrepare.cpp | 1570 if (match(CountZeros->getOperand(1), m_One())) in despeculateCountZeros()
|