Home
last modified time | relevance | path

Searched refs:m_Cmp (Results 1 – 13 of 13) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Analysis/
H A DIVDescriptors.cpp637 if (match(I, m_OneUse(m_Cmp(Pred, m_Value(), m_Value())))) { in isSelectCmpPattern()
643 if (!match(I, m_Select(m_OneUse(m_Cmp(Pred, m_Value(), m_Value())), m_Value(), in isSelectCmpPattern()
678 if (match(I, m_OneUse(m_Cmp(Pred, m_Value(), m_Value())))) { in isMinMaxPattern()
685 !match(I, m_Select(m_OneUse(m_Cmp(Pred, m_Value(), m_Value())), m_Value(), in isMinMaxPattern()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp487 if (!match(&I, m_Cmp(Pred, m_Instruction(I0), m_Instruction(I1))) && in foldExtractExtract()
597 !match(&I, m_Cmp(Pred, m_Value(Ins0), m_Value(Ins1)))) in scalarizeBinopOrCmp()
728 if (!match(B0, m_OneUse(m_Cmp(P0, m_Instruction(I0), m_Constant(C0)))) || in foldExtractedCmps()
729 !match(B1, m_OneUse(m_Cmp(P1, m_Instruction(I1), m_Constant(C1)))) || in foldExtractedCmps()
H A DSLPVectorizer.cpp6323 auto MatchCmp = m_Cmp(CurrentPred, m_Value(), m_Value()); in getEntryCost()
10517 return match(I, m_Select(m_Cmp(), m_Value(), m_Value())) && in isCmpSelMinMax()
10702 if (match(Cond, m_Cmp(Pred, m_Specific(LHS), m_Instruction(L2)))) { in getRdxKind()
10706 } else if (match(Cond, m_Cmp(Pred, m_Instruction(L1), m_Specific(RHS)))) { in getRdxKind()
10713 if (!match(Cond, m_Cmp(Pred, m_Instruction(L1), m_Instruction(L2))) || in getRdxKind()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DEarlyCSE.cpp254 if (!match(Cond, m_Cmp(Pred, m_Value(X), m_Value(Y)))) in getHashValueImpl()
413 if (match(CondL, m_Cmp(PredL, m_Value(X), m_Value(Y))) && in isEqualImpl()
414 match(CondR, m_Cmp(PredR, m_Specific(X), m_Specific(Y))) && in isEqualImpl()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp801 m_Cmp(SrcPred, PatternMatch::m_Value(SrcLHS), in instCombineIntrinsic()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp90 if (match(V, m_OneUse(m_Cmp(UnusedPred, m_Value(V0), m_Value(V1))))) in cheapToScalarize()
462 if (match(SrcVec, m_Cmp(Pred, m_Value(X), m_Value(Y))) && in visitExtractElementInst()
H A DInstCombineLoadStoreAlloca.cpp550 if (!match(V, m_Select(m_Cmp(Pred, m_Instruction(L1), m_Instruction(L2)), in isMinMaxWithLoads()
H A DInstCombineSelect.cpp62 if (!match(Sel.getCondition(), m_Cmp(Pred, m_Value(X), m_Constant(C)))) in foldSelectBinOpIdentity()
2083 if (!match(Cond, m_Cmp(Pred, m_Value(A), m_Value(B)))) in foldSelectCmpBitcasts()
H A DInstCombineCalls.cpp2238 match(IIOperand, m_Cmp(Pred, m_Value(A), m_Zero())) && in visitCallInst()
2259 m_Cmp(Pred, m_And(m_Value(A), m_ConstantInt(AlignMask)), in visitCallInst()
H A DInstCombineAndOrXor.cpp3548 if (match(NotOp, m_OneUse(m_Cmp(Pred, m_Value(), m_Value())))) { in foldNot()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DPatternMatch.h89 inline class_match<CmpInst> m_Cmp() { return class_match<CmpInst>(); } in m_Cmp() function
1388 m_Cmp(CmpInst::Predicate &Pred, const LHS &L, const RHS &R) { in m_Cmp() function
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp2135 if (match(I, m_Select(m_Cmp(CurrentPred, m_Value(), m_Value()), m_Value(), in getCmpSelInstrCost()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp8289 m_CombineOr(m_Cmp(), m_CombineOr(m_LogicalAnd(m_Value(), m_Value()), in splitBranchCondition()