/openbsd/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSelect.cpp | 656 if ((IsEqualZero && !match(CmpRHS, m_AllOnes())) || in foldSelectICmpAndOr() 890 if (match(FVal, m_AllOnes())) { in canonicalizeSaturatedAdd() 894 if (!match(TVal, m_AllOnes())) in canonicalizeSaturatedAdd() 1016 (!match(X, m_Not(m_Specific(CmpLHS))) || !match(CmpRHS, m_AllOnes()))) in foldSelectCttzCtlz() 1585 match(TVal, m_Neg(m_Specific(X))) && match(FVal, m_AllOnes())) in foldSelectZeroOrOnes() 1590 match(FVal, m_Neg(m_Specific(X))) && match(TVal, m_AllOnes())) in foldSelectZeroOrOnes() 1672 if (Pred == ICmpInst::ICMP_SGT && match(CmpRHS, m_AllOnes()) && in foldSelectInstWithICmp() 1704 } else if (Pred == ICmpInst::ICMP_SGT && match(CmpRHS, m_AllOnes())) { in foldSelectInstWithICmp() 1973 match(TrueVal, m_AllOnes())) in foldOverflowingAddSubSelect() 3154 if (match(TrueVal, m_AllOnes()) && match(FalseVal, m_Zero())) in visitSelectInst() [all …]
|
H A D | InstCombineShifts.cpp | 212 auto MaskA = m_Add(m_Shl(m_One(), m_Value(MaskShAmt)), m_AllOnes()); in dropRedundantMaskingOfLeftShiftInput() 214 auto MaskB = m_Xor(m_Shl(m_AllOnes(), m_Value(MaskShAmt)), m_AllOnes()); in dropRedundantMaskingOfLeftShiftInput() 216 auto MaskC = m_LShr(m_AllOnes(), m_Value(MaskShAmt)); in dropRedundantMaskingOfLeftShiftInput() 219 m_LShr(m_Shl(m_AllOnes(), m_Value(MaskShAmt)), m_Deferred(MaskShAmt)); in dropRedundantMaskingOfLeftShiftInput() 297 bool NeedMask = !match(NewMask, m_AllOnes()); in dropRedundantMaskingOfLeftShiftInput()
|
H A D | InstCombineCompares.cpp | 3605 m_CombineOr(m_Not(m_Shl(m_AllOnes(), m_Value())), in foldICmpWithLowBitMaskedVal() 3607 m_CombineOr(m_LShr(m_AllOnes(), m_Value()), in foldICmpWithLowBitMaskedVal() 4163 match(B, m_AllOnes())) in foldICmpBinOp() 4168 match(B, m_AllOnes())) in foldICmpBinOp() 4181 match(D, m_AllOnes())) in foldICmpBinOp() 4186 match(D, m_AllOnes())) in foldICmpBinOp() 4439 auto LSubOne = m_Add(m_Specific(Op1), m_AllOnes()); in foldICmpBinOp() 4662 match(A, m_ICmp(Pred2, m_Value(Y), m_AllOnes())) && in foldICmpEquality() 5964 m_AllOnes()))), in foldICmpWithHighBitMask() 6069 (Pred == ICmpInst::ICMP_NE && match(Op1, m_AllOnes()) && in foldICmpOfUAddOv() [all …]
|
H A D | InstCombineMulDivRem.cpp | 105 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() 179 if (match(Y, m_OneUse(m_Not(m_OneUse(m_Shl(m_AllOnes(), m_Value(Z))))))) { in foldMulShl1() 213 if (match(Op1, m_AllOnes())) { in visitMul() 1339 if (match(Op1, m_AllOnes()) || in visitSDiv()
|
H A D | InstCombineAddSub.cpp | 870 match(Op1, m_AllOnes())) in foldAddWithConstant() 1095 if (!match(&I, m_Add(m_OneUse(m_Shl(m_One(), m_Value(NBits))), m_AllOnes()))) in canonicalizeLowbitMask() 1249 : !match(SignExtendingValueBaseConstant, m_AllOnes())) in canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract() 1493 m_AllOnes()))) { in visitAdd() 2006 if (match(Op0, m_AllOnes())) in visitSub() 2011 if (match(Op0, m_OneUse(m_Add(m_Value(X), m_AllOnes())))) in visitSub()
|
H A D | InstCombineAndOrXor.cpp | 2593 if (!((match(EltC1, m_Zero()) && match(EltC2, m_AllOnes())) || in areInverseVectorBitmasks() 2594 (match(EltC2, m_Zero()) && match(EltC1, m_AllOnes())))) in areInverseVectorBitmasks() 3366 if (match(&I, m_c_Or(m_Add(m_Shl(m_One(), m_Value(X)), m_AllOnes()), in visitOr() 4123 !match(C1, m_AllOnes())) { in visitXor()
|
H A D | InstCombineCalls.cpp | 647 m_c_And(m_Not(m_Value(X)), m_Add(m_Deferred(X), m_AllOnes())))) { in foldCtpop()
|
/openbsd/gnu/llvm/llvm/lib/Analysis/ |
H A D | InstructionSimplify.cpp | 673 if (IsNUW && match(Op1, m_AllOnes())) in simplifyAddInst() 1521 if (match(Op0, m_AllOnes()) || in simplifyAShrInst() 1522 match(Op0, m_Shl(m_AllOnes(), m_Specific(Op1)))) in simplifyAShrInst() 2085 if (match(Op1, m_AllOnes())) in simplifyAndInst() 2376 if (Q.isUndefValue(Op1) || match(Op1, m_AllOnes())) in simplifyOrInst() 2397 if ((match(Op0, m_Shl(m_AllOnes(), m_Value(X))) && in simplifyOrInst() 2398 match(Op1, m_LShr(m_AllOnes(), m_Value(Y)))) || in simplifyOrInst() 2399 (match(Op1, m_Shl(m_AllOnes(), m_Value(X))) && in simplifyOrInst() 2400 match(Op0, m_LShr(m_AllOnes(), m_Value(Y))))) { in simplifyOrInst() 6161 if (match(Op0, m_AllOnes()) || match(Op1, m_AllOnes())) in simplifyBinaryIntrinsic() [all …]
|
H A D | ValueTracking.cpp | 6372 auto ZeroOrAllOnes = m_CombineOr(m_ZeroInt(), m_AllOnes()); in matchSelectPattern()
|
/openbsd/gnu/llvm/llvm/include/llvm/IR/ |
H A D | PatternMatch.h | 453 inline cst_pred_ty<is_all_ones> m_AllOnes() { in m_AllOnes() function 1981 auto XorExpr = m_OneUse(m_Xor(m_Value(Op1), m_AllOnes())); in match() 2303 return m_c_Xor(m_AllOnes(), V);
|
/openbsd/gnu/llvm/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUInstCombineIntrinsic.cpp | 761 (match(Src1, PatternMatch::m_AllOnes()) && in instCombineIntrinsic()
|
/openbsd/gnu/llvm/llvm/lib/CodeGen/ |
H A D | CodeGenPrepare.cpp | 1560 if (Pred == ICmpInst::ICMP_EQ && match(B, m_AllOnes())) in matchUAddWithOverflowConstantEdgeCases()
|
/openbsd/gnu/llvm/llvm/lib/Target/X86/ |
H A D | X86ISelLowering.cpp | 31516 if (match(I, m_c_Xor(m_Value(PeekI), m_AllOnes())) || in FindSingleBitChange() 31517 match(I, m_Sub(m_AllOnes(), m_Value(PeekI)))) { in FindSingleBitChange() 31727 if (match(I->user_back(), m_ICmp(Pred, m_Value(), m_AllOnes()))) in shouldExpandCmpArithRMWInIR() 31738 if (match(I->user_back(), m_ICmp(Pred, m_Value(), m_AllOnes()))) in shouldExpandCmpArithRMWInIR() 31750 if (match(I->user_back(), m_ICmp(Pred, m_Value(), m_AllOnes()))) in shouldExpandCmpArithRMWInIR() 31760 if (match(I->user_back(), m_ICmp(Pred, m_Value(), m_AllOnes()))) in shouldExpandCmpArithRMWInIR()
|