Home
last modified time | relevance | path

Searched refs:m_ZeroInt (Results 1 – 24 of 24) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DMIPatternMatch.h238 inline SpecificConstantMatch m_ZeroInt() { return SpecificConstantMatch(0); } in m_ZeroInt() function
767 return m_GSub(m_ZeroInt(), Src);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp140 if (!match(TermI, m_Br(m_ICmp(Pred, m_Specific(ShAmt), m_ZeroInt()), in foldGuardedFunnelShift()
561 if (!match(GEP->idx_begin()->get(), m_ZeroInt())) in tryToRecognizeTableBasedCttz()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DPatternMatch.h599 inline cst_pred_ty<is_zero_int> m_ZeroInt() { in m_ZeroInt() function
2440 if (AddExpr.match(ICmpLHS) && m_ZeroInt().match(ICmpRHS) && in match()
2445 if (m_ZeroInt().match(ICmpLHS) && AddExpr.match(ICmpRHS) && in match()
2734 return m_Sub(m_ZeroInt(), V);
2743 return m_NSWSub(m_ZeroInt(), V);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp2078 if (match(Op1, m_ZeroInt()) || match(Op1, m_Undef())) in visitCallInst()
2083 if (match(Op0, m_ZeroInt()) || match(Op0, m_Undef())) in visitCallInst()
2703 if (match(SelectRHS, m_ZeroInt())) { in visitCallInst()
2706 } else if (match(SelectLHS, m_ZeroInt())) { in visitCallInst()
2851 if (match(KeyArg, m_ZeroInt()) && in visitCallInst()
H A DInstCombineAndOrXor.cpp916 !match(Cmp1, m_ICmp(Pred1, m_Specific(X), m_ZeroInt()))) in foldIsPowerOf2OrZero()
943 if (JoinedByAnd && match(Cmp0, m_ICmp(Pred0, m_Value(X), m_ZeroInt())) && in foldIsPowerOf2()
954 if (!JoinedByAnd && match(Cmp0, m_ICmp(Pred0, m_Value(X), m_ZeroInt())) && in foldIsPowerOf2()
3379 PredL == PredR && match(LHS1, m_ZeroInt()) && match(RHS1, m_ZeroInt()) && in foldAndOrOfICmps()
3893 m_ZeroInt()), in visitOr()
H A DInstCombineAddSub.cpp1701 m_OneUse(m_ICmp(Pred, m_Specific(A), m_ZeroInt()))))) && in visitAdd()
2102 if (MinMax->isSigned() && match(Y, m_ZeroInt()) && in foldSubOfMinMax()
2189 bool IsNegation = match(Op0, m_ZeroInt()); in visitSub()
H A DInstCombineCasts.cpp993 if (Cmp->hasOneUse() && match(Cmp->getOperand(1), m_ZeroInt()) && in transformZExtICmp()
1304 if (Pred == ICmpInst::ICMP_SLT && match(Op1, m_ZeroInt())) { in transformSExtICmp()
H A DInstCombineVectorOps.cpp1306 if (!match(Op0, m_InsertElt(m_Undef(), m_Specific(X), m_ZeroInt()))) in foldInsEltIntoSplat()
2087 if (match(BO0, m_ZeroInt())) in getAlternateBinop()
H A DInstCombineSelect.cpp2488 if (!match(Cond, m_OneUse(m_ICmp(Pred, m_Specific(ShAmt), m_ZeroInt()))) || in foldSelectFunnelShift()
2959 if (!match(Cond, m_ICmp(Pred, m_Value(XLowBits), m_ZeroInt())) || in foldRoundUpIntegerWithPow2Alignment()
H A DInstCombineCompares.cpp5527 !match(Op1, m_ZeroInt())) in foldICmpPow2Test()
7102 (Pred == ICmpInst::ICMP_EQ && match(Op1, m_ZeroInt()) && in foldICmpOfUAddOv()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp1758 !match(Cmp1, m_ICmp(Pred1, m_Specific(X), m_ZeroInt())) || C->isZero()) in simplifyAndOrOfICmpsWithCtpop()
4828 if (match(TrueVal, m_One()) && match(FalseVal, m_ZeroInt())) in simplifySelectInst()
4841 match(TrueVal, m_ZeroInt())) in simplifySelectInst()
4845 if (match(FalseVal, m_ZeroInt())) { in simplifySelectInst()
4894 if (match(FalseVal, m_ZeroInt())) in simplifySelectInst()
4905 if (match(TrueVal, m_ZeroInt())) in simplifySelectInst()
6237 if (match(Op1, PatternMatch::m_ZeroInt())) in simplifyLdexp()
H A DVectorUtils.cpp259 m_Shuffle(m_InsertElt(m_Value(), m_Value(Splat), m_ZeroInt()), in getSplatValue()
H A DValueTracking.cpp8534 auto ZeroOrAllOnes = m_CombineOr(m_ZeroInt(), m_AllOnes()); in matchSelectPattern()
8535 auto ZeroOrOne = m_CombineOr(m_ZeroInt(), m_One()); in matchSelectPattern()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64PostLegalizerLowering.cpp278 if (!mi_match(InsMI->getOperand(3).getReg(), MRI, m_ZeroInt())) in matchDupFromInsertVectorElt()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp175 if (!match(&I, m_InsertElt(m_Undef(), m_Value(Scalar), m_ZeroInt())) || in vectorizeLoadInsert()
181 bool HasExtract = match(Scalar, m_ExtractElt(m_Value(X), m_ZeroInt())); in vectorizeLoadInsert()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp1645 else if (Pred == ICmpInst::ICMP_NE && match(B, m_ZeroInt())) in matchUAddWithOverflowConstantEdgeCases()
1711 if (Pred == ICmpInst::ICMP_EQ && match(B, m_ZeroInt())) { in combineToUSubWithOverflow()
1716 if (Pred == ICmpInst::ICMP_NE && match(B, m_ZeroInt())) { in combineToUSubWithOverflow()
7306 if (!match(SVI, m_Shuffle(m_InsertElt(m_Undef(), m_Value(), m_ZeroInt()), in optimizeShuffleVectorInst()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp1034 if (match(II.getOperand(PredPos), m_ZeroInt())) { in instCombineSVENoActiveUnaryErase()
1044 if (match(II.getOperand(0), m_ZeroInt())) { in instCombineSVENoActiveUnaryZero()
1568 if (match(II.getOperand(0), m_ZeroInt())) { in instCombineSVEAllOrNoActive()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstructionSelector.cpp3291 if (mi_match(Def->getOperand(2).getReg(), MRI, m_ZeroInt())) { in matchZeroExtendFromS32()
5269 if (STI.hasRestrictedSOffset() && mi_match(SOffset, *MRI, m_ZeroInt())) in selectBUFSOffset()
H A DAMDGPURegisterBankInfo.cpp1578 if (mi_match(Src2, MRI, m_ZeroInt())) in applyMappingMAD_64_32()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp658 if (match(CarryIn, m_ZeroInt())) { in simplifyX86addcarry()
H A DX86ISelLowering.cpp30761 if (match(I, m_c_ICmp(Pred, m_Sub(m_ZeroInt(), m_Specific(Op)), m_Value()))) in shouldExpandCmpArithRMWInIR()
30764 if (match(I->user_back(), m_ICmp(Pred, m_Value(), m_ZeroInt()))) in shouldExpandCmpArithRMWInIR()
30775 if (match(I->user_back(), m_ICmp(Pred, m_Value(), m_ZeroInt()))) in shouldExpandCmpArithRMWInIR()
30786 if (match(I->user_back(), m_ICmp(Pred, m_Value(), m_ZeroInt()))) in shouldExpandCmpArithRMWInIR()
30797 if (match(I->user_back(), m_ICmp(Pred, m_Value(), m_ZeroInt()))) in shouldExpandCmpArithRMWInIR()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelLowering.cpp847 if (match(V, m_Shuffle(m_InsertElt(m_Value(), m_Value(), m_ZeroInt()), in shouldSinkOperands()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp2168 if (!match(Op, m_Shuffle(m_InsertElt(m_Undef(), m_Value(), m_ZeroInt()), in shouldSinkOperands()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp19385 m_InsertElt(m_Undef(), m_Value(), m_ZeroInt()), in shouldSinkOperands()