Home
last modified time | relevance | path

Searched refs:isSplatValue (Results 1 – 20 of 20) sorted by relevance

/src/contrib/llvm-project/llvm/lib/Analysis/
H A DVectorUtils.cpp266 bool llvm::isSplatValue(const Value *V, int Index, unsigned Depth) { in isSplatValue() function in llvm
300 return isSplatValue(X, Index, Depth) && isSplatValue(Y, Index, Depth); in isSplatValue()
304 return isSplatValue(X, Index, Depth) && isSplatValue(Y, Index, Depth) && in isSplatValue()
305 isSplatValue(Z, Index, Depth); in isSplatValue()
H A DInstructionSimplify.cpp6340 if (isSplatValue(Op0)) in simplifyUnaryIntrinsic()
/src/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DVectorUtils.h186 bool isSplatValue(const Value *V, int Index = -1, unsigned Depth = 0);
/src/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp794 if (!isSplatValue(Op0) || !isSplatValue(Op1)) in scalarizeVPIntrinsic()
2036 if (isSplatValue(CV)) in foldShuffleFromReductions()
/src/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp2068 if (LHS->hasOneUse() && isSplatValue(RHS)) in foldVectorBinop()
2072 else if (isSplatValue(LHS) && match(RHS, m_OneUse(m_VecReverse(m_Value(V2))))) in foldVectorBinop()
2228 if (isSplatValue(OtherOp, SplatIndex)) { in foldVectorBinop()
2230 } else if (!isSplatValue(Y, SplatIndex)) { in foldVectorBinop()
H A DInstCombineSelect.cpp2579 if ((Cond->hasOneUse() || TVal->hasOneUse()) && isSplatValue(FVal)) in foldVectorSelect()
2583 else if (isSplatValue(TVal) && match(FVal, m_VecReverse(m_Value(Y))) && in foldVectorSelect()
H A DInstCombineCalls.cpp3320 if (isSplatValue(BO1)) in visitCallInst()
3327 if (match(BO1, m_VecReverse(m_Value(Y))) && isSplatValue(BO0)) in visitCallInst()
H A DInstCombineCompares.cpp7045 if (LHS->hasOneUse() && isSplatValue(RHS)) in foldVectorCmp()
7049 else if (isSplatValue(LHS) && match(RHS, m_OneUse(m_VecReverse(m_Value(V2))))) in foldVectorCmp()
/src/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSelectionDAG.h2165 bool isSplatValue(SDValue V, const APInt &DemandedElts, APInt &UndefElts,
2169 bool isSplatValue(SDValue V, bool AllowUndefs = false) const;
/src/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp2743 bool SelectionDAG::isSplatValue(SDValue V, const APInt &DemandedElts, in isSplatValue() function in SelectionDAG
2773 if (isSplatValue(LHS, DemandedElts, UndefLHS, Depth + 1) && in isSplatValue()
2774 isSplatValue(RHS, DemandedElts, UndefRHS, Depth + 1)) { in isSplatValue()
2784 return isSplatValue(V.getOperand(0), DemandedElts, UndefElts, Depth + 1); in isSplatValue()
2850 (isSplatValue(Src, SrcElts, SrcUndefs, Depth + 1) && in isSplatValue()
2867 if (isSplatValue(Src, DemandedSrcElts, UndefSrcElts, Depth + 1)) { in isSplatValue()
2884 if (isSplatValue(Src, DemandedSrcElts, UndefSrcElts, Depth + 1)) { in isSplatValue()
2913 if (!isSplatValue(Src, SubDemandedElts, SubUndefElts, Depth + 1)) in isSplatValue()
2929 bool SelectionDAG::isSplatValue(SDValue V, bool AllowUndefs) const { in isSplatValue() function in SelectionDAG
2939 return isSplatValue(V, DemandedElts, UndefElts) && in isSplatValue()
[all …]
H A DDAGCombiner.cpp17262 if (VT.isVector() && DAG.isSplatValue(N1)) in combineRepeatedFPDivisors()
22950 if (!AllAnyExt && DAG.isSplatValue(SDValue(N, 0), /*AllowUndefs*/ true)) in reduceBuildVecExtToExtBuildVec()
25467 if (DAG.isSplatValue(Shuf->getOperand(0), DemandedElts, UndefElts)) { in combineShuffleOfSplatVal()
25497 if (DAG.isSplatValue(Shuf->getOperand(0), /*AllowUndefs*/ false)) in combineShuffleOfSplatVal()
/src/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp7062 if (!isSplatValue(TVal) || !isSplatValue(FVal)) in optimizeShiftInst()
7097 if (!isSplatValue(TVal) || !isSplatValue(FVal)) in optimizeFunnelShift()
/src/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp1227 if (isSplatValue(LHS) || isSplatValue(RHS)) { in instCombineSVELast()
H A DAArch64ISelLowering.cpp25098 DAG.isSplatValue(TruncHighOp, false)) in tryCombineMULLWithUZP1()
25166 DAG.isSplatValue(TruncLowOp, false))) in tryCombineMULLWithUZP1()
/src/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsSEISelLowering.cpp2507 } else if (DAG.isSplatValue(Op, /* AllowUndefs */ false)) in lowerBUILD_VECTOR()
/src/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp6985 if (DAG.isSplatValue(BuildVector, true/*AllowUndefs*/) && in isOnlyUsedByStores()
7182 DAG.isSplatValue(Op1, true/*AllowUndefs*/)) { in combineSTORE()
/src/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchISelLowering.cpp1424 if (DAG.isSplatValue(Op, /*AllowUndefs=*/false)) in lowerBUILD_VECTOR()
/src/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp3355 if (DAG.isSplatValue(Y, /*AllowUndefs=*/true)) in shouldProduceAndByConstByHoistingConstFromShiftsLHSOfAnd()
4152 if (DAG.isSplatValue(Op, /*AllowUndefs*/ false)) in splitVector()
30400 bool IsSplatAmt = DAG.isSplatValue(Amt); in LowerRotate()
38567 DAG.isSplatValue(V1, /*AllowUndefs*/ false)) { in combineX86ShuffleChain()
40503 DAG.isSplatValue(Op, /*AllowUndefs*/ false); in canonicalizeShuffleWithOp()
42559 if (!DemandedElts.isOne() && TLO.DAG.isSplatValue(Op, /*AllowUndefs*/false)) in SimplifyDemandedVectorEltsForTargetNode()
42683 if (!Is32BitAVX512 || !TLO.DAG.isSplatValue(LHS)) in SimplifyDemandedBitsForTargetNode()
42685 if (!Is32BitAVX512 || !TLO.DAG.isSplatValue(RHS)) in SimplifyDemandedBitsForTargetNode()
57072 DAG.isSplatValue(InVec, /*AllowUndefs*/ false))) in combineEXTRACT_SUBVECTOR()
/src/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp5355 bool SwapOps = DAG.isSplatValue(V2) && !DAG.isSplatValue(V1); in lowerVECTOR_SHUFFLE()
/src/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.cpp9514 if (DAG.isSplatValue(Op, true) && in LowerBUILD_VECTOR()