Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DVectorUtilsTest.cpp186 EXPECT_TRUE(isSplatValue(A)); in TEST_F()
213 EXPECT_TRUE(isSplatValue(A)); in TEST_F()
240 EXPECT_FALSE(isSplatValue(A)); in TEST_F()
269 EXPECT_FALSE(isSplatValue(A)); in TEST_F()
300 EXPECT_TRUE(isSplatValue(A)); in TEST_F()
332 EXPECT_TRUE(isSplatValue(A)); in TEST_F()
363 EXPECT_FALSE(isSplatValue(A)); in TEST_F()
374 EXPECT_FALSE(isSplatValue(A)); in TEST_F()
386 EXPECT_TRUE(isSplatValue(A)); in TEST_F()
397 EXPECT_TRUE(isSplatValue(A)); in TEST_F()
[all …]
/llvm-project-15.0.7/llvm/unittests/CodeGen/
H A DAArch64SelectionDAGTest.cpp281 EXPECT_TRUE(DAG->isSplatValue(Op, /*AllowUndefs=*/false)); in TEST_F()
285 EXPECT_FALSE(DAG->isSplatValue(Op, DemandedElts, UndefElts)); in TEST_F()
289 EXPECT_TRUE(DAG->isSplatValue(Op, DemandedElts, UndefElts)); in TEST_F()
305 EXPECT_TRUE(DAG->isSplatValue(Op, /*AllowUndefs=*/false)); in TEST_F()
313 EXPECT_TRUE(DAG->isSplatValue(Op, DemandedElts, UndefElts)); in TEST_F()
325 EXPECT_TRUE(DAG->isSplatValue(Op, /*AllowUndefs=*/false)); in TEST_F()
329 EXPECT_TRUE(DAG->isSplatValue(Op, DemandedElts, UndefElts)); in TEST_F()
333 EXPECT_TRUE(DAG->isSplatValue(Op, DemandedElts, UndefElts)); in TEST_F()
349 EXPECT_TRUE(DAG->isSplatValue(Op, /*AllowUndefs=*/false)); in TEST_F()
353 EXPECT_TRUE(DAG->isSplatValue(Op, DemandedElts, UndefElts)); in TEST_F()
[all …]
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DVectorUtils.cpp386 bool llvm::isSplatValue(const Value *V, int Index, unsigned Depth) { in isSplatValue() function in llvm
420 return isSplatValue(X, Index, Depth) && isSplatValue(Y, Index, Depth); in isSplatValue()
424 return isSplatValue(X, Index, Depth) && isSplatValue(Y, Index, Depth) && in isSplatValue()
425 isSplatValue(Z, Index, Depth); in isSplatValue()
H A DInstructionSimplify.cpp5721 if (isSplatValue(Op0)) in simplifyUnaryIntrinsic()
/llvm-project-15.0.7/llvm/test/CodeGen/Hexagon/
H A Disel-splat-vector-dag-crash.ll3 ; This used to crash because SelectionDAG::isSplatValue did not set UndefElts
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DVectorUtils.h367 bool isSplatValue(const Value *V, int Index = -1, unsigned Depth = 0);
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp2545 bool SelectionDAG::isSplatValue(SDValue V, const APInt &DemandedElts, in isSplatValue() function in SelectionDAG
2573 if (isSplatValue(LHS, DemandedElts, UndefLHS, Depth + 1) && in isSplatValue()
2574 isSplatValue(RHS, DemandedElts, UndefRHS, Depth + 1)) { in isSplatValue()
2584 return isSplatValue(V.getOperand(0), DemandedElts, UndefElts, Depth + 1); in isSplatValue()
2649 (isSplatValue(Src, SrcElts, SrcUndefs, Depth + 1) && in isSplatValue()
2666 if (isSplatValue(Src, DemandedSrcElts, UndefSrcElts, Depth + 1)) { in isSplatValue()
2683 if (isSplatValue(Src, DemandedSrcElts, UndefSrcElts, Depth + 1)) { in isSplatValue()
2712 if (!isSplatValue(Src, SubDemandedElts, SubUndefElts, Depth + 1)) in isSplatValue()
2728 bool SelectionDAG::isSplatValue(SDValue V, bool AllowUndefs) const { in isSplatValue() function in SelectionDAG
2738 return isSplatValue(V, DemandedElts, UndefElts) && in isSplatValue()
[all …]
H A DDAGCombiner.cpp15171 if (VT.isVector() && DAG.isSplatValue(N1)) in combineRepeatedFPDivisors()
20138 if (!AllAnyExt && DAG.isSplatValue(SDValue(N, 0), /*AllowUndefs*/ true)) in reduceBuildVecExtToExtBuildVec()
22209 if (DAG.isSplatValue(Shuf->getOperand(0), /*AllowUndefs*/ false)) in combineShuffleOfSplatVal()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DSelectionDAG.h2024 bool isSplatValue(SDValue V, const APInt &DemandedElts, APInt &UndefElts,
2028 bool isSplatValue(SDValue V, bool AllowUndefs = false) const;
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp6690 if (!isSplatValue(TVal) || !isSplatValue(FVal)) in optimizeShiftInst()
6725 if (!isSplatValue(TVal) || !isSplatValue(FVal)) in optimizeFunnelShift()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp1162 if (isSplatValue(CV)) in foldShuffleFromReductions()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp809 if (isSplatValue(LHS) || isSplatValue(RHS)) { in instCombineSVELast()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp2452 if (isSplatValue(BO1)) in visitCallInst()
2461 isSplatValue(BO0)) in visitCallInst()
H A DInstructionCombining.cpp1852 if (isSplatValue(OtherOp, SplatIndex)) { in foldVectorBinop()
1854 } else if (!isSplatValue(Y, SplatIndex)) { in foldVectorBinop()
/llvm-project-15.0.7/llvm/lib/Target/Mips/
H A DMipsSEISelLowering.cpp2504 } else if (DAG.isSplatValue(Op, /* AllowUndefs */ false)) in lowerBUILD_VECTOR()
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp6376 if (DAG.isSplatValue(BuildVector, true/*AllowUndefs*/) && in isOnlyUsedByStores()
6495 DAG.isSplatValue(Op1, true/*AllowUndefs*/)) { in combineSTORE()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp5946 if (DAG.isSplatValue(Y, /*AllowUndefs=*/true)) in shouldProduceAndByConstByHoistingConstFromShiftsLHSOfAnd()
6552 if (DAG.isSplatValue(Op, /*AllowUndefs*/ false)) in splitVector()
30781 bool IsSplatAmt = DAG.isSplatValue(Amt); in LowerRotate()
37944 DAG.isSplatValue(V1, /*AllowUndefs*/ false)) { in combineX86ShuffleChain()
39677 DAG.isSplatValue(Op, /*AllowUndefs*/ false); in canonicalizeShuffleWithBinOps()
41525 if (!DemandedElts.isOne() && TLO.DAG.isSplatValue(Op, /*AllowUndefs*/false)) in SimplifyDemandedVectorEltsForTargetNode()
41649 if (!Is32BitAVX512 || !TLO.DAG.isSplatValue(LHS)) in SimplifyDemandedBitsForTargetNode()
41651 if (!Is32BitAVX512 || !TLO.DAG.isSplatValue(RHS)) in SimplifyDemandedBitsForTargetNode()
54462 DAG.isSplatValue(InVec, /*AllowUndefs*/ false))) in combineEXTRACT_SUBVECTOR()
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp2819 bool SwapOps = DAG.isSplatValue(V2) && !DAG.isSplatValue(V1); in lowerVECTOR_SHUFFLE()
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dvector-shuffle-combining.ll3356 ; SelectionDAG::isSplatValue - incorrect handling of undef sub-elements
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.cpp9231 if (DAG.isSplatValue(Op, true) && in LowerBUILD_VECTOR()