Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/AggressiveInstCombine/
DAggressiveInstCombine.cpp90 if (match(V, m_And(m_Value(Op0), m_One()))) { in matchAndOrChain()
136 else if (match(&I, m_And(m_OneUse(m_Or(m_Value(), m_Value())), m_One()))) in foldAnyOrAllBitsSet()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonLoopIdiomRecognition.cpp694 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()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DInstructionSimplify.cpp440 if (match(TCmp, m_One())) in ThreadCmpOverSelect()
445 if (match(FCmp, m_One()) && match(TCmp, m_Zero())) in ThreadCmpOverSelect()
638 match(Op0, m_Shl(m_Specific(Op1), m_One()))) in SimplifySubInst()
754 if (match(Op1, m_One())) in SimplifyMulInst()
830 if (match(Op1, m_One())) in SimplifyDiv()
953 if (match(Op1, m_One())) in SimplifyRem()
1452 if (match(RHS, m_One())) in SimplifyICmpInst()
1467 if (match(RHS, m_One())) in SimplifyICmpInst()
1477 if (match(RHS, m_One())) in SimplifyICmpInst()
DValueTracking.cpp722 if (match(V, m_Shl(m_One(), m_Value()))) in isPowerOfTwo()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp924 if (match(TrueVal, m_One())) { in visitSelectInst()
937 if (match(FalseVal, m_One())) { in visitSelectInst()
966 if (match(TrueVal, m_One()) && match(FalseVal, m_Zero())) in visitSelectInst()
974 if (match(TrueVal, m_Zero()) && match(FalseVal, m_One())) { in visitSelectInst()
DInstCombineMulDivRem.cpp41 match(One, m_One())) { in simplifyValueKnownNonZero()
353 if (match(Op0, m_Shl(m_One(), m_Value(Y)))) { in visitMul()
356 } else if (match(Op1, m_Shl(m_One(), m_Value(Y)))) { in visitMul()
1444 if (match(Op0, m_One())) { in visitURem()
DInstCombineCompares.cpp1788 if (match(LHSI->getOperand(1), m_One())) { in visitICmpInstWithInstAndIntCst()
1927 if (match(LHSI, m_Shl(m_One(), m_Value(X)))) { in visitICmpInstWithInstAndIntCst()
2658 if (match(RHS, m_One())) in OptimizeOverflowCheck()
3434 if (match(LHS, m_Shl(m_One(), m_Value(X)))) { in visitICmpInst()
3478 if (match(LHS, m_Shl(m_One(), m_Value(X)))) { in visitICmpInst()
3870 match(B, m_One())) in visitICmpInst()
3875 match(B, m_One())) in visitICmpInst()
3890 match(D, m_One())) in visitICmpInst()
3895 match(D, m_One())) in visitICmpInst()
DInstCombineAddSub.cpp987 if (match(RHS, m_Add(m_Value(X), m_One()))) in checkForNegativeOperand()
990 if (match(LHS, m_Add(m_Value(X), m_One()))) { in checkForNegativeOperand()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp63 match(One, m_One())) { in simplifyValueKnownNonZero()
291 if (match(Op0, m_Shl(m_One(), m_Value(Y)))) { in visitMul()
294 } else if (match(Op1, m_Shl(m_One(), m_Value(Y)))) { in visitMul()
741 if (match(Op0, m_One())) { in commonIDivTransforms()
1326 if (match(Op0, m_One())) in visitURem()
DInstCombineSelect.cpp456 match(Cmp->getOperand(1), m_Zero()) && match(FVal, m_One()))) in foldSelectICmpAndAnd()
461 if (!match(TVal, m_OneUse(m_And(m_Value(B), m_One())))) in foldSelectICmpAndAnd()
1554 if (match(TrueVal, m_One())) { in visitSelectInst()
1567 if (match(FalseVal, m_One())) { in visitSelectInst()
1597 if (match(TrueVal, m_One()) && match(FalseVal, m_Zero())) in visitSelectInst()
1605 if (match(TrueVal, m_Zero()) && match(FalseVal, m_One())) { in visitSelectInst()
DInstCombineAddSub.cpp877 if (match(RHS, m_Add(m_Value(X), m_One()))) in checkForNegativeOperand()
880 if (match(LHS, m_Add(m_Value(X), m_One()))) { in checkForNegativeOperand()
1114 if (!match(&I, m_Add(m_OneUse(m_Shl(m_One(), m_Value(NBits))), m_AllOnes()))) in canonicalizeLowbitMask()
1225 if (match(&I, m_c_BinOp(m_Add(m_Value(A), m_One()), m_Not(m_Value(B))))) in visitAdd()
1622 if (match(Op1, m_OneUse(m_Add(m_Value(X), m_One())))) in visitSub()
DInstCombineCompares.cpp1640 match(And->getOperand(1), m_One())) { in foldICmpAndConstConst()
1807 if (!match(Shl, m_Shl(m_One(), m_Value(Y)))) in foldICmpShlOne()
3118 if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_SLE && match(B, m_One())) in foldICmpBinOp()
3122 if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_SGT && match(B, m_One())) in foldICmpBinOp()
3136 if (C && NoOp1WrapProblem && Pred == CmpInst::ICMP_SGE && match(D, m_One())) in foldICmpBinOp()
3140 if (C && NoOp1WrapProblem && Pred == CmpInst::ICMP_SLT && match(D, m_One())) in foldICmpBinOp()
3153 if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_ULE && match(B, m_One())) in foldICmpBinOp()
3157 if (A && NoOp0WrapProblem && Pred == CmpInst::ICMP_UGT && match(B, m_One())) in foldICmpBinOp()
3161 if (C && NoOp1WrapProblem && Pred == CmpInst::ICMP_UGE && match(D, m_One())) in foldICmpBinOp()
3165 if (C && NoOp1WrapProblem && Pred == CmpInst::ICMP_ULT && match(D, m_One())) in foldICmpBinOp()
[all …]
DInstCombineCalls.cpp1342 if (!match(II.getArgOperand(1), m_One())) { in foldCttzCtlz()
3575 ((match(Src1, m_One()) && match(Src0, m_ZExt(m_Value(ExtSrc)))) || in visitCallInst()
DInstCombineAndOrXor.cpp1434 if (match(Op0, m_OneUse(m_LogicalShift(m_One(), m_Value(X)))) && in visitAnd()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp226 if (match(Op0, m_Shl(m_One(), m_Value(Y)))) in visitMul()
228 if (match(Op1, m_Shl(m_One(), m_Value(Y)))) in visitMul()
DInstCombineCompares.cpp1968 if (match(LHS, m_Shl(m_One(), m_Value(X)))) { in visitICmpInst()
2005 if (match(LHS, m_Shl(m_One(), m_Value(X)))) { in visitICmpInst()
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DPatternMatch.h182 inline cst_pred_ty<is_one> m_One() { return cst_pred_ty<is_one>(); } in m_One() function
183 inline api_pred_ty<is_one> m_One(const APInt *&V) { return V; } in m_One() function
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp433 if (match(TCmp, m_One())) in ThreadCmpOverSelect()
438 if (match(FCmp, m_One()) && match(TCmp, m_Zero())) in ThreadCmpOverSelect()
904 if (match(Op1, m_One())) in SimplifyMulInst()
1007 if (match(Op1, m_One())) in SimplifyDiv()
1167 if (match(Op1, m_One())) in SimplifyRem()
2184 if (match(RHS, m_One())) in SimplifyICmpInst()
2199 if (match(RHS, m_One())) in SimplifyICmpInst()
2224 if (match(RHS, m_One())) in SimplifyICmpInst()
DValueTracking.cpp1507 if (match(V, m_Shl(m_One(), m_Value()))) in isKnownToBeAPowerOfTwo()
/external/llvm/include/llvm/IR/
DPatternMatch.h244 inline cst_pred_ty<is_one> m_One() { return cst_pred_ty<is_one>(); } in m_One() function
245 inline api_pred_ty<is_one> m_One(const APInt *&V) { return V; } in m_One() function
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DInstructionSimplify.cpp461 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()
953 if (match(Op1, m_One()) || Ty->isIntOrIntVectorTy(1) || in simplifyDivRem()
2354 } else if (match(RHS, m_One())) { in simplifyICmpOfBools()
DValueTracking.cpp1684 if (match(V, m_Shl(m_One(), m_Value()))) in isKnownToBeAPowerOfTwo()
4643 auto ZeroOrOne = m_CombineOr(m_ZeroInt(), m_One()); in matchSelectPattern()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DPatternMatch.h352 inline cst_pred_ty<is_one> m_One() { in m_One() function
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DConstantFold.cpp960 if (match(C2, m_Zero()) || match(C2, m_One())) in ConstantFoldBinaryInstruction()
/external/llvm/lib/IR/
DConstantFold.cpp956 if (match(C2, m_Zero()) || match(C2, m_One())) in ConstantFoldBinaryInstruction()

12