Home
last modified time | relevance | path

Searched refs:m_AllOnes (Results 1 – 20 of 20) sorted by relevance

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp206 auto MaskA = m_Add(m_Shl(m_One(), m_Value(MaskShAmt)), m_AllOnes()); in dropRedundantMaskingOfLeftShiftInput()
208 auto MaskB = m_Xor(m_Shl(m_AllOnes(), m_Value(MaskShAmt)), m_AllOnes()); in dropRedundantMaskingOfLeftShiftInput()
210 auto MaskC = m_Shr(m_AllOnes(), m_Value(MaskShAmt)); in dropRedundantMaskingOfLeftShiftInput()
213 m_Shr(m_Shl(m_AllOnes(), m_Value(MaskShAmt)), m_Deferred(MaskShAmt)); in dropRedundantMaskingOfLeftShiftInput()
291 bool NeedMask = !match(NewMask, m_AllOnes()); in dropRedundantMaskingOfLeftShiftInput()
DInstCombineCompares.cpp2755 if (Pred == ICmpInst::ICMP_SGT && match(Op1, m_AllOnes())) in foldICmpBitCast()
3283 m_CombineOr(m_Not(m_Shl(m_AllOnes(), m_Value())), in foldICmpWithLowBitMaskedVal()
3284 m_Add(m_Shl(m_One(), m_Value()), m_AllOnes())), in foldICmpWithLowBitMaskedVal()
3285 m_CombineOr(m_LShr(m_AllOnes(), m_Value()), in foldICmpWithLowBitMaskedVal()
3286 m_LShr(m_Shl(m_AllOnes(), m_Value(Y)), m_Deferred(Y)))); in foldICmpWithLowBitMaskedVal()
3645 match(&I, m_c_ICmp(Pred, m_OneUse(m_UDiv(m_AllOnes(), m_Value(X))), in foldUnsignedMultiplicationOverflowCheck()
3789 match(B, m_AllOnes())) in foldICmpBinOp()
3794 match(B, m_AllOnes())) in foldICmpBinOp()
3807 match(D, m_AllOnes())) in foldICmpBinOp()
3812 match(D, m_AllOnes())) in foldICmpBinOp()
[all …]
DInstCombineSelect.cpp619 if ((IsEqualZero && !match(CmpRHS, m_AllOnes())) || in foldSelectICmpAndOr()
748 match(FVal, m_AllOnes()) && match(Cmp1, m_APInt(CmpC)) && *CmpC == ~*C) { in canonicalizeSaturatedAdd()
759 if (match(FVal, m_AllOnes())) { in canonicalizeSaturatedAdd()
763 if (!match(TVal, m_AllOnes())) in canonicalizeSaturatedAdd()
1458 } else if (Pred == ICmpInst::ICMP_SGT && match(CmpRHS, m_AllOnes())) { in foldSelectInstWithICmp()
1834 match(TrueVal, m_AllOnes())) in foldOverflowingAddSubSelect()
2424 if (match(TrueVal, m_AllOnes()) && match(FalseVal, m_Zero())) in visitSelectInst()
2434 if (match(TrueVal, m_Zero()) && match(FalseVal, m_AllOnes())) { in visitSelectInst()
DInstCombineAddSub.cpp886 match(Op1, m_AllOnes())) in foldAddWithConstant()
1067 if (!match(&I, m_Add(m_OneUse(m_Shl(m_One(), m_Value(NBits))), m_AllOnes()))) in canonicalizeLowbitMask()
1192 : !match(SignExtendingValueBaseConstant, m_AllOnes())) in canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract()
1714 if (match(Op0, m_AllOnes())) in visitSub()
1723 if (match(Op0, m_OneUse(m_Add(m_Value(X), m_AllOnes())))) in visitSub()
DInstCombineMulDivRem.cpp138 if (match(&I, m_c_Mul(m_OneUse(m_Select(m_Value(Cond), m_One(), m_AllOnes())), in foldMulSelectToNegate()
144 if (match(&I, m_c_Mul(m_OneUse(m_Select(m_Value(Cond), m_AllOnes(), m_One())), in foldMulSelectToNegate()
187 if (match(Op1, m_AllOnes())) { in visitMul()
1064 if (match(Op1, m_AllOnes()) || in visitSDiv()
DInstCombineAndOrXor.cpp2099 if (!((match(EltC1, m_Zero()) && match(EltC2, m_AllOnes())) || in areInverseVectorBitmasks()
2100 (match(EltC2, m_Zero()) && match(EltC1, m_AllOnes())))) in areInverseVectorBitmasks()
2827 if ((PredL == CmpInst::ICMP_SGT && match(LHS1, m_AllOnes()) && in foldXorOfICmps()
2828 PredR == CmpInst::ICMP_SGT && match(RHS1, m_AllOnes())) || in foldXorOfICmps()
2836 if ((PredL == CmpInst::ICMP_SGT && match(LHS1, m_AllOnes()) && in foldXorOfICmps()
2839 PredR == CmpInst::ICMP_SGT && match(RHS1, m_AllOnes()))) { in foldXorOfICmps()
3251 if (match(Op1, m_AllOnes()) && Op0->hasOneUse()) { in visitXor()
DInstCombineCasts.cpp1236 (Pred == ICmpInst::ICMP_SGT && match(Op1, m_AllOnes()))) { in transformSExtICmp()
DInstCombineCalls.cpp3856 (match(Src1, m_AllOnes()) && match(Src0, m_SExt(m_Value(ExtSrc))))) && in visitCallInst()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp573 } else if (Pred == ICmpInst::ICMP_SGT && match(CmpRHS, m_AllOnes())) { in visitSelectInstWithICmp()
970 if (match(TrueVal, m_AllOnes()) && match(FalseVal, m_Zero())) in visitSelectInst()
980 if (match(TrueVal, m_Zero()) && match(FalseVal, m_AllOnes())) { in visitSelectInst()
DInstCombineCompares.cpp3860 match(B, m_AllOnes())) in visitICmpInst()
3865 match(B, m_AllOnes())) in visitICmpInst()
3880 match(D, m_AllOnes())) in visitICmpInst()
3885 match(D, m_AllOnes())) in visitICmpInst()
4077 auto LSubOne = m_Add(m_Specific(Op1), m_AllOnes()); in visitICmpInst()
DInstCombineAndOrXor.cpp1603 if (!((match(EltC1, m_Zero()) && match(EltC2, m_AllOnes())) || in areInverseVectorBitmasks()
1604 (match(EltC2, m_Zero()) && match(EltC1, m_AllOnes())))) in areInverseVectorBitmasks()
DInstCombineMulDivRem.cpp189 if (match(Op1, m_AllOnes())) { in visitMul()
DInstCombineAddSub.cpp1507 if (match(Op0, m_AllOnes())) in visitSub()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DInstructionSimplify.cpp656 if (IsNUW && match(Op1, m_AllOnes())) in SimplifyAddInst()
1391 if (match(Op0, m_AllOnes())) in SimplifyAShrInst()
1962 if (match(Op1, m_AllOnes())) in SimplifyAndInst()
2018 if (match(Op0, m_Add(m_Specific(Op1), m_AllOnes())) && in SimplifyAndInst()
2021 if (match(Op1, m_Add(m_Specific(Op0), m_AllOnes())) && in SimplifyAndInst()
2108 if (match(Op1, m_Undef()) || match(Op1, m_AllOnes())) in SimplifyOrInst()
2676 if (Pred == ICmpInst::ICMP_SGT && match(RHS, m_AllOnes())) in simplifyICmpWithConstant()
4135 m_Xor(m_PtrToInt(m_Specific(StrippedBasePtr)), m_AllOnes()))) { in SimplifyGEPInst()
5117 if (match(Op0, m_AllOnes()) || match(Op1, m_AllOnes())) in simplifyBinaryIntrinsic()
5137 if (match(Op0, m_Zero()) || match(Op1, m_AllOnes())) in simplifyBinaryIntrinsic()
DValueTracking.cpp5063 auto ZeroOrAllOnes = m_CombineOr(m_ZeroInt(), m_AllOnes()); in matchSelectPattern()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DMVETailPredication.cpp240 if (!match(BECount, m_Add(m_Value(TripCount), m_AllOnes()))) in isTailPredicate()
/external/llvm/include/llvm/IR/
DPatternMatch.h252 inline cst_pred_ty<is_all_ones> m_AllOnes() { in m_AllOnes() function
255 inline api_pred_ty<is_all_ones> m_AllOnes(const APInt *&V) { return V; } in m_AllOnes() function
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DPatternMatch.h337 inline cst_pred_ty<is_all_ones> m_AllOnes() { in m_AllOnes() function
1904 return m_c_Xor(V, m_AllOnes());
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp1434 if (match(Op0, m_AllOnes())) in SimplifyAShrInst()
1586 if (match(Op1, m_AllOnes())) in SimplifyAndInst()
1760 if (match(Op1, m_AllOnes())) in SimplifyOrInst()
3422 } else if (Pred == ICmpInst::ICMP_SGT && match(CmpRHS, m_AllOnes())) { in SimplifySelectInst()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DCodeGenPrepare.cpp1248 if (Pred == ICmpInst::ICMP_EQ && match(B, m_AllOnes())) in matchUAddWithOverflowConstantEdgeCases()