Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DVectorUtils.cpp413 bool llvm::isSplatValue(const Value *V, int Index, unsigned Depth) { in isSplatValue() function in llvm
447 return isSplatValue(X, Index, Depth) && isSplatValue(Y, Index, Depth); in isSplatValue()
451 return isSplatValue(X, Index, Depth) && isSplatValue(Y, Index, Depth) && in isSplatValue()
452 isSplatValue(Z, Index, Depth); in isSplatValue()
H A DInstructionSimplify.cpp6378 if (isSplatValue(Op0)) in simplifyUnaryIntrinsic()
6981 if (isSplatValue(Vec)) in simplifyIntrinsic()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DVectorUtils.h212 LLVM_ABI bool isSplatValue(const Value *V, int Index = -1, unsigned Depth = 0);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DScalarizeMaskedMemIntrin.cpp199 if (isSplatValue(Mask, /*Index=*/0)) { in scalarizeMaskedLoad()
365 if (isSplatValue(Mask, /*Index=*/0)) { in scalarizeMaskedStore()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp2333 if (LHS->hasOneUse() && isSplatValue(RHS)) in foldVectorBinop()
2337 else if (isSplatValue(LHS) && match(RHS, m_OneUse(m_VecReverse(m_Value(V2))))) in foldVectorBinop()
2364 if (LHS->hasOneUse() && isSplatValue(RHS)) in foldVectorBinop()
2368 else if (isSplatValue(LHS) && in foldVectorBinop()
2470 if (isSplatValue(OtherOp, SplatIndex)) { in foldVectorBinop()
2472 } else if (!isSplatValue(Y, SplatIndex)) { in foldVectorBinop()
H A DInstCombineSelect.cpp2633 if ((Cond->hasOneUse() || TVal->hasOneUse()) && isSplatValue(FVal)) in foldVectorSelect()
2637 else if (isSplatValue(TVal) && match(FVal, m_VecReverse(m_Value(Y))) && in foldVectorSelect()
H A DInstCombineCompares.cpp7329 if (LHS->hasOneUse() && isSplatValue(RHS)) in foldVectorCmp()
7333 else if (isSplatValue(LHS) && match(RHS, m_OneUse(m_VecReverse(m_Value(V2))))) in foldVectorCmp()
H A DInstCombineCalls.cpp1481 else if (isSplatValue(Arg)) in foldReversedIntrinsicOperands()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp2986 bool SelectionDAG::isSplatValue(SDValue V, const APInt &DemandedElts, in isSplatValue() function in SelectionDAG
3020 if (isSplatValue(LHS, DemandedElts, UndefLHS, Depth + 1) && in isSplatValue()
3021 isSplatValue(RHS, DemandedElts, UndefRHS, Depth + 1) && in isSplatValue()
3032 return isSplatValue(V.getOperand(0), DemandedElts, UndefElts, Depth + 1); in isSplatValue()
3098 (isSplatValue(Src, SrcElts, SrcUndefs, Depth + 1) && in isSplatValue()
3115 if (isSplatValue(Src, DemandedSrcElts, UndefSrcElts, Depth + 1)) { in isSplatValue()
3132 if (isSplatValue(Src, DemandedSrcElts, UndefSrcElts, Depth + 1)) { in isSplatValue()
3161 if (!isSplatValue(Src, SubDemandedElts, SubUndefElts, Depth + 1)) in isSplatValue()
3177 bool SelectionDAG::isSplatValue(SDValue V, bool AllowUndefs) const { in isSplatValue() function in SelectionDAG
3187 return isSplatValue(V, DemandedElts, UndefElts) && in isSplatValue()
[all …]
H A DDAGCombiner.cpp18263 if (VT.isVector() && DAG.isSplatValue(N1)) in combineRepeatedFPDivisors()
24009 if (!AllAnyExt && DAG.isSplatValue(SDValue(N, 0), /*AllowUndefs*/ true)) in reduceBuildVecExtToExtBuildVec()
26543 if (DAG.isSplatValue(Shuf->getOperand(0), DemandedElts, UndefElts)) { in combineShuffleOfSplatVal()
26572 if (DAG.isSplatValue(Shuf->getOperand(0), /*AllowUndefs*/ false)) in combineShuffleOfSplatVal()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp975 if (!isSplatValue(Op0) || !isSplatValue(Op1)) in scalarizeVPIntrinsic()
2993 if (isSplatValue(CV)) in foldShuffleFromReductions()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSelectionDAG.h2326 LLVM_ABI bool isSplatValue(SDValue V, const APInt &DemandedElts,
2330 LLVM_ABI bool isSplatValue(SDValue V, bool AllowUndefs = false) const;
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp7458 if (!isSplatValue(TVal) || !isSplatValue(FVal)) in optimizeShiftInst()
7493 if (!isSplatValue(TVal) || !isSplatValue(FVal)) in optimizeFunnelShift()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp1933 if (isSplatValue(LHS) || isSplatValue(RHS)) { in instCombineSVELast()
H A DAArch64ISelLowering.cpp26523 DAG.isSplatValue(TruncHighOp, false)) in tryCombineMULLWithUZP1()
26591 DAG.isSplatValue(TruncLowOp, false))) in tryCombineMULLWithUZP1()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsSEISelLowering.cpp2551 } else if (DAG.isSplatValue(Op, /* AllowUndefs */ false)) in lowerBUILD_VECTOR()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp3536 if (DAG.isSplatValue(Y, /*AllowUndefs=*/true)) in shouldProduceAndByConstByHoistingConstFromShiftsLHSOfAnd()
4384 if (DAG.isSplatValue(Op, /*AllowUndefs*/ false)) in splitVector()
15281 DAG.isSplatValue(BC1, /*AllowUndefs=*/true); in lowerShuffleAsSplitOrBlend()
15283 DAG.isSplatValue(BC2, /*AllowUndefs=*/true); in lowerShuffleAsSplitOrBlend()
31617 bool IsSplatAmt = DAG.isSplatValue(Amt); in LowerRotate()
39996 DAG.isSplatValue(V1, /*AllowUndefs*/ false)) { in combineX86ShuffleChain()
41988 DAG.isSplatValue(Op, /*AllowUndefs*/ false); in canonicalizeShuffleWithOp()
44284 if (!DemandedElts.isOne() && TLO.DAG.isSplatValue(Op, /*AllowUndefs*/false)) in SimplifyDemandedVectorEltsForTargetNode()
44409 if (!Is32BitAVX512 || !TLO.DAG.isSplatValue(LHS)) in SimplifyDemandedBitsForTargetNode()
44411 if (!Is32BitAVX512 || !TLO.DAG.isSplatValue(RHS)) in SimplifyDemandedBitsForTargetNode()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp8037 if (DAG.isSplatValue(BuildVector, true/*AllowUndefs*/) && in isOnlyUsedByStores()
8254 DAG.isSplatValue(Op1, true/*AllowUndefs*/)) { in combineSTORE()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp6291 if (!DAG.isSplatValue(V2) && !DAG.isSplatValue(V1) && in lowerVECTOR_SHUFFLE()
6305 bool SwapOps = DAG.isSplatValue(V2) && !DAG.isSplatValue(V1); in lowerVECTOR_SHUFFLE()
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchISelLowering.cpp2508 if (DAG.isSplatValue(Op, /*AllowUndefs=*/false)) in lowerBUILD_VECTOR()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.cpp9733 if (DAG.isSplatValue(Op, true) && in LowerBUILD_VECTOR()