Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyTargetTransformInfo.cpp303 if (match(V, m_Shuffle(m_InsertElt(m_Value(), m_Value(), m_ZeroInt()), in isProfitableToSinkOperands()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DMIPatternMatch.h247 inline SpecificConstantMatch m_ZeroInt() { return SpecificConstantMatch(0); } in m_ZeroInt() function
898 return m_GSub(m_ZeroInt(), Src);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp140 m_ZeroInt()), in foldGuardedFunnelShift()
569 if (!match(GEP->idx_begin()->get(), m_ZeroInt())) in tryToRecognizeTableBasedCttz()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp2345 if (match(Op1, m_ZeroInt()) || match(Op1, m_Undef())) in visitCallInst()
2350 if (match(Op0, m_ZeroInt()) || match(Op0, m_Undef())) in visitCallInst()
2382 match(Op1, m_ZeroInt())) { in visitCallInst()
2992 if (match(SelectRHS, m_ZeroInt())) { in visitCallInst()
2995 } else if (match(SelectLHS, m_ZeroInt())) { in visitCallInst()
3141 if (!match(KeyArg, m_ZeroInt())) in visitCallInst()
3146 if (match(KeyArg, m_ZeroInt()) && in visitCallInst()
H A DInstCombineAddSub.cpp1755 CmpInst::ICMP_SGT, m_Specific(A), m_ZeroInt())))))) { in visitAdd()
1783 ICmpInst::ICMP_NE, m_Specific(A), m_ZeroInt())))))) { in visitAdd()
1806 m_ZeroInt())))) && in visitAdd()
2228 if (MinMax->isSigned() && match(Y, m_ZeroInt()) && in foldSubOfMinMax()
2315 bool IsNegation = match(Op0, m_ZeroInt()); in visitSub()
H A DInstCombineAndOrXor.cpp943 !match(Cmp1, m_ICmp(Pred1, m_Specific(X), m_ZeroInt()))) in foldIsPowerOf2OrZero()
978 match(Cmp0, m_SpecificICmp(ICmpInst::ICMP_NE, m_Value(X), m_ZeroInt())) && in foldIsPowerOf2()
990 match(Cmp0, m_SpecificICmp(ICmpInst::ICMP_EQ, m_Value(X), m_ZeroInt())) && in foldIsPowerOf2()
3428 PredL == PredR && match(LHS1, m_ZeroInt()) && match(RHS1, m_ZeroInt()) && in foldAndOrOfICmps()
4136 m_ZeroInt()), in visitOr()
H A DInstCombineCasts.cpp1040 if (Cmp->hasOneUse() && match(Cmp->getOperand(1), m_ZeroInt()) && in transformZExtICmp()
1355 if (Pred == ICmpInst::ICMP_SLT && match(Op1, m_ZeroInt())) { in transformSExtICmp()
H A DInstCombineVectorOps.cpp1384 if (!match(Op0, m_InsertElt(m_Undef(), m_Specific(X), m_ZeroInt()))) in foldInsEltIntoSplat()
2165 if (match(BO0, m_ZeroInt())) in getAlternateBinop()
H A DInstCombineSelect.cpp2542 m_ZeroInt())))) in foldSelectFunnelShift()
3031 if (!match(Cond, m_ICmp(Pred, m_Value(XLowBits), m_ZeroInt())) || in foldRoundUpIntegerWithPow2Alignment()
H A DInstCombineCompares.cpp5808 !match(Op1, m_ZeroInt())) in foldICmpPow2Test()
7386 (Pred == ICmpInst::ICMP_EQ && match(Op1, m_ZeroInt()) && in foldICmpOfUAddOv()
/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
2584 if (AddExpr.match(ICmpLHS) && m_ZeroInt().match(ICmpRHS) && in match()
2589 if (m_ZeroInt().match(ICmpLHS) && AddExpr.match(ICmpRHS) && in match()
2901 return m_Sub(m_ZeroInt(), V);
2910 return m_NSWSub(m_ZeroInt(), V);
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp1709 !match(Cmp1, m_ICmp(Pred1, m_Specific(X), m_ZeroInt())) || C->isZero()) in simplifyAndOrOfICmpsWithCtpop()
4854 if (match(TrueVal, m_One()) && match(FalseVal, m_ZeroInt())) in simplifySelectInst()
4867 match(TrueVal, m_ZeroInt())) in simplifySelectInst()
4871 if (match(FalseVal, m_ZeroInt())) { in simplifySelectInst()
4920 if (match(FalseVal, m_ZeroInt())) in simplifySelectInst()
4931 if (match(TrueVal, m_ZeroInt())) in simplifySelectInst()
6276 if (match(Op1, PatternMatch::m_ZeroInt())) in simplifyLdexp()
H A DVectorUtils.cpp406 m_Shuffle(m_InsertElt(m_Value(), m_Value(Splat), m_ZeroInt()), in getSplatValue()
H A DValueTracking.cpp8731 auto ZeroOrAllOnes = m_CombineOr(m_ZeroInt(), m_AllOnes()); in matchSelectPattern()
8732 auto ZeroOrOne = m_CombineOr(m_ZeroInt(), m_One()); in matchSelectPattern()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64PostLegalizerLowering.cpp274 if (!mi_match(InsMI->getOperand(3).getReg(), MRI, m_ZeroInt())) in matchDupFromInsertVectorElt()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.cpp2858 m_ZeroInt()), in isProfitableToSinkOperands()
2895 !match(Op, m_Shuffle(m_InsertElt(m_Undef(), m_Value(), m_ZeroInt()), in isProfitableToSinkOperands()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp1647 else if (Pred == ICmpInst::ICMP_NE && match(B, m_ZeroInt())) in matchUAddWithOverflowConstantEdgeCases()
1713 if (Pred == ICmpInst::ICMP_EQ && match(B, m_ZeroInt())) { in combineToUSubWithOverflow()
1718 if (Pred == ICmpInst::ICMP_NE && match(B, m_ZeroInt())) { in combineToUSubWithOverflow()
7701 if (!match(SVI, m_Shuffle(m_InsertElt(m_Undef(), m_Value(), m_ZeroInt()), in optimizeShuffleVectorInst()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp2007 if (!SCEVCheckCond || match(SCEVCheckCond, m_ZeroInt())) in getSCEVChecks()
2022 return (SCEVCheckCond && !match(SCEVCheckCond, m_ZeroInt())) || in hasChecks()
2140 if (match(X, m_ZeroInt())) in emitTransformedIndex()
2142 if (match(Y, m_ZeroInt())) in emitTransformedIndex()
H A DVectorCombine.cpp205 m_InsertElt(m_Poison(), m_OneUse(m_Value(Scalar)), m_ZeroInt()))) in vectorizeLoadInsert()
210 bool HasExtract = match(Scalar, m_ExtractElt(m_Value(X), m_ZeroInt())); in vectorizeLoadInsert()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstructionSelector.cpp3509 if (mi_match(Def->getOperand(2).getReg(), MRI, m_ZeroInt())) { in matchZeroExtendFromS32()
3799 if (mi_match(Op, MRI, m_ZeroInt())) { in BitOp3_Op()
6297 if (STI.hasRestrictedSOffset() && mi_match(SOffset, *MRI, m_ZeroInt())) in selectBUFSOffset()
H A DAMDGPURegisterBankInfo.cpp1606 if (mi_match(Src2, MRI, m_ZeroInt())) in applyMappingMAD_64_32()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.cpp2874 m_ZeroInt()), in isProfitableToSinkOperands()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp654 if (match(CarryIn, m_ZeroInt())) { in simplifyX86addcarry()
H A DX86ISelLowering.cpp31971 if (match(I, m_c_ICmp(Pred, m_Sub(m_ZeroInt(), m_Specific(Op)), m_Value()))) in shouldExpandCmpArithRMWInIR()
31975 m_SpecificICmp(CmpInst::ICMP_SLT, m_Value(), m_ZeroInt()))) in shouldExpandCmpArithRMWInIR()
31988 m_SpecificICmp(CmpInst::ICMP_SLT, m_Value(), m_ZeroInt()))) in shouldExpandCmpArithRMWInIR()
32000 if (match(I->user_back(), m_ICmp(Pred, m_Value(), m_ZeroInt()))) in shouldExpandCmpArithRMWInIR()
32013 m_SpecificICmp(CmpInst::ICMP_SLT, m_Value(), m_ZeroInt()))) in shouldExpandCmpArithRMWInIR()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp1631 if (match(OpPredicate, m_ZeroInt())) { in simplifySVEIntrinsic()