Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVCodeGenPrepare.cpp176 m_Value(BasePtr), m_Zero(), m_AllOnes(), m_Value(VL)))) in expandVPStrideLoad()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp217 auto MaskA = m_Add(m_Shl(m_One(), m_Value(MaskShAmt)), m_AllOnes()); in dropRedundantMaskingOfLeftShiftInput()
219 auto MaskB = m_Not(m_Shl(m_AllOnes(), m_Value(MaskShAmt))); in dropRedundantMaskingOfLeftShiftInput()
221 auto MaskC = m_LShr(m_AllOnes(), m_Value(MaskShAmt)); in dropRedundantMaskingOfLeftShiftInput()
224 m_LShr(m_Shl(m_AllOnes(), m_Value(MaskShAmt)), m_Deferred(MaskShAmt)); in dropRedundantMaskingOfLeftShiftInput()
315 bool NeedMask = !match(NewMask, m_AllOnes()); in dropRedundantMaskingOfLeftShiftInput()
1218 if (match(Op0, m_LShr(m_AllOnes(), m_Specific(Op1)))) { in visitShl()
1587 if (match(Op0, m_Shl(m_AllOnes(), m_Specific(Op1)))) { in visitLShr()
H A DInstCombineSelect.cpp924 if (match(B, m_Zero()) && match(TrueVal, m_Add(m_Specific(A), m_AllOnes()))) in canonicalizeSaturatedSubtract()
983 match(FVal, m_AllOnes()) && match(Cmp1, m_APInt(CmpC)) && *CmpC == ~*C) { in canonicalizeSaturatedAdd()
992 if (match(FVal, m_AllOnes())) { in canonicalizeSaturatedAdd()
996 if (!match(TVal, m_AllOnes())) in canonicalizeSaturatedAdd()
1165 (!match(X, m_Not(m_Specific(CmpLHS))) || !match(CmpRHS, m_AllOnes()))) in foldSelectCttzCtlz()
1657 match(TVal, m_Neg(m_Specific(X))) && match(FVal, m_AllOnes())) in foldSelectZeroOrOnes()
1662 match(FVal, m_Neg(m_Specific(X))) && match(TVal, m_AllOnes())) in foldSelectZeroOrOnes()
1869 if (Pred == ICmpInst::ICMP_SGT && match(CmpRHS, m_AllOnes()) && in foldSelectInstWithICmp()
1901 } else if (Pred == ICmpInst::ICMP_SGT && match(CmpRHS, m_AllOnes())) { in foldSelectInstWithICmp()
2176 match(TrueVal, m_AllOnes())) in foldOverflowingAddSubSelect()
[all …]
H A DInstCombineCompares.cpp1885 if (match(And->getOperand(0), m_Add(m_Value(X), m_AllOnes())) && in foldICmpAndConstant()
1969 match(And, m_OneUse(m_c_And(m_OneUse(m_Shl(m_AllOnes(), m_Value(X))), in foldICmpAndConstant()
2087 match(Or, m_c_Or(m_Add(m_Value(X), m_AllOnes()), m_Deferred(X)))) { in foldICmpOrConstant()
3292 if (Pred == ICmpInst::ICMP_SGT && match(Op1, m_AllOnes())) in foldICmpBitCast()
4219 return match(V, m_c_Xor(m_Value(X), m_Add(m_Deferred(X), m_AllOnes()))); in isMaskOrZero()
4236 if (!Not && match(I->getOperand(1), m_AllOnes())) in isMaskOrZero()
4364 if (ICmpInst::isEquality(Pred) && match(Op1, m_AllOnes()) && in foldICmpWithLowBitMaskedVal()
4675 m_CombineAnd(m_OneUse(m_UDiv(m_AllOnes(), m_Value(X))), in foldMultiplicationOverflowCheck()
5037 match(B, m_AllOnes())) in foldICmpBinOp()
5042 match(B, m_AllOnes())) in foldICmpBinOp()
[all …]
H A DInstCombineAddSub.cpp877 match(Op1, m_AllOnes())) in foldAddWithConstant()
1000 if (match(Op0, m_ZExt(m_Add(m_Value(X), m_AllOnes())))) { in foldAddWithConstant()
1216 if (!match(&I, m_Add(m_OneUse(m_Shl(m_One(), m_Value(NBits))), m_AllOnes()))) in canonicalizeLowbitMask()
1395 : !match(SignExtendingValueBaseConstant, m_AllOnes())) in canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract()
1665 m_AllOnes()))) { in visitAdd()
2214 if (match(Op0, m_AllOnes())) in visitSub()
2219 if (match(Op0, m_OneUse(m_Add(m_Value(X), m_AllOnes())))) in visitSub()
H A DInstCombineMulDivRem.cpp105 if (match(&I, m_c_Mul(m_OneUse(m_Select(m_Value(Cond), m_One(), m_AllOnes())), in foldMulSelectToNegate()
113 if (match(&I, m_c_Mul(m_OneUse(m_Select(m_Value(Cond), m_AllOnes(), m_One())), in foldMulSelectToNegate()
181 if (match(Y, m_OneUse(m_Not(m_OneUse(m_Shl(m_AllOnes(), m_Value(Z))))))) { in foldMulShl1()
220 if (match(Op1, m_AllOnes())) { in visitMul()
1600 if (match(Op1, m_AllOnes()) || in visitSDiv()
H A DInstCombineAndOrXor.cpp2767 if (match(&I, m_c_And(m_OneUse(m_Add(m_ZExtOrSelf(m_Value(A)), m_AllOnes())), in visitAnd()
3101 if (!((match(EltC1, m_Zero()) && match(EltC2, m_AllOnes())) || in areInverseVectorBitmasks()
3102 (match(EltC2, m_Zero()) && match(EltC1, m_AllOnes())))) in areInverseVectorBitmasks()
3389 PredL == PredR && match(LHS1, m_AllOnes()) && match(RHS1, m_AllOnes()) && in foldAndOrOfICmps()
3941 if (match(&I, m_c_Or(m_Add(m_Shl(m_One(), m_Value(X)), m_AllOnes()), in visitOr()
4718 !match(C1, m_AllOnes())) { in visitXor()
H A DInstCombineCalls.cpp569 if (match(Op0, m_Add(m_LShr(m_AllOnes(), m_Value(X)), m_One()))) { in foldCttzCtlz()
662 m_c_And(m_Not(m_Value(X)), m_Add(m_Deferred(X), m_AllOnes())))) { in foldCtpop()
H A DInstructionCombining.cpp968 BinOpc == Instruction::Xor && match(Mask, m_AllOnes())) { in foldBinOpShiftWithShift()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp677 if (IsNUW && match(Op1, m_AllOnes())) in simplifyAddInst()
1533 if (match(Op0, m_AllOnes()) || in simplifyAShrInst()
1534 match(Op0, m_Shl(m_AllOnes(), m_Specific(Op1)))) in simplifyAShrInst()
2048 if (match(Op0, m_Add(m_Specific(Op1), m_AllOnes())) && in simplifyAndCommutative()
2056 match(Op1, m_Add(m_Shl(m_Specific(X), m_APInt(Shift2)), m_AllOnes())) && in simplifyAndCommutative()
2093 if (match(Op1, m_AllOnes())) in simplifyAndInst()
2126 match(Op0, m_Add(m_Value(Shift), m_AllOnes())) && in simplifyAndInst()
2358 if (Q.isUndefValue(Op1) || match(Op1, m_AllOnes())) in simplifyOrInst()
2379 if ((match(Op0, m_Shl(m_AllOnes(), m_Value(X))) && in simplifyOrInst()
2380 match(Op1, m_LShr(m_AllOnes(), m_Value(Y)))) || in simplifyOrInst()
[all …]
H A DValueTracking.cpp937 match(I, m_c_Xor(m_Value(X), m_Add(m_Deferred(X), m_AllOnes())))) { in getKnownBitsFromAndXorOr()
2320 if (match(I, m_Add(m_LShr(m_AllOnes(), m_Value()), m_One()))) in isKnownToBeAPowerOfTwo()
8534 auto ZeroOrAllOnes = m_CombineOr(m_ZeroInt(), m_AllOnes()); in matchSelectPattern()
9871 else if (Pred == ICmpInst::ICMP_SGT && match(B, m_AllOnes())) in findValuesAffectedByCondition()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSDPatternMatch.h787 inline AllOnes_match m_AllOnes() { return AllOnes_match(); }
871 return m_Xor(V, m_AllOnes());
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp902 (match(Src1, PatternMatch::m_AllOnes()) && in instCombineIntrinsic()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DPatternMatch.h524 inline cst_pred_ty<is_all_ones> m_AllOnes() { in m_AllOnes() function
2380 return m_c_Xor(m_AllOnes(), V); in m_Not()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp1643 if (Pred == ICmpInst::ICMP_EQ && match(B, m_AllOnes())) in matchUAddWithOverflowConstantEdgeCases()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp30547 match(I, m_Sub(m_AllOnes(), m_Value(PeekI)))) { in FindSingleBitChange()
30766 if (match(I->user_back(), m_ICmp(Pred, m_Value(), m_AllOnes()))) in shouldExpandCmpArithRMWInIR()
30777 if (match(I->user_back(), m_ICmp(Pred, m_Value(), m_AllOnes()))) in shouldExpandCmpArithRMWInIR()
30789 if (match(I->user_back(), m_ICmp(Pred, m_Value(), m_AllOnes()))) in shouldExpandCmpArithRMWInIR()
30799 if (match(I->user_back(), m_ICmp(Pred, m_Value(), m_AllOnes()))) in shouldExpandCmpArithRMWInIR()