| /llvm-project-15.0.7/llvm/unittests/Analysis/ |
| H A D | VectorUtilsTest.cpp | 186 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 D | AArch64SelectionDAGTest.cpp | 281 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 D | VectorUtils.cpp | 386 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 D | InstructionSimplify.cpp | 5721 if (isSplatValue(Op0)) in simplifyUnaryIntrinsic()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/Hexagon/ |
| H A D | isel-splat-vector-dag-crash.ll | 3 ; This used to crash because SelectionDAG::isSplatValue did not set UndefElts
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | VectorUtils.h | 367 bool isSplatValue(const Value *V, int Index = -1, unsigned Depth = 0);
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAG.cpp | 2545 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 D | DAGCombiner.cpp | 15171 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 D | SelectionDAG.h | 2024 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 D | CodeGenPrepare.cpp | 6690 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 D | VectorCombine.cpp | 1162 if (isSplatValue(CV)) in foldShuffleFromReductions()
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/ |
| H A D | AArch64TargetTransformInfo.cpp | 809 if (isSplatValue(LHS) || isSplatValue(RHS)) { in instCombineSVELast()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCalls.cpp | 2452 if (isSplatValue(BO1)) in visitCallInst() 2461 isSplatValue(BO0)) in visitCallInst()
|
| H A D | InstructionCombining.cpp | 1852 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 D | MipsSEISelLowering.cpp | 2504 } else if (DAG.isSplatValue(Op, /* AllowUndefs */ false)) in lowerBUILD_VECTOR()
|
| /llvm-project-15.0.7/llvm/lib/Target/SystemZ/ |
| H A D | SystemZISelLowering.cpp | 6376 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 D | X86ISelLowering.cpp | 5946 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 D | RISCVISelLowering.cpp | 2819 bool SwapOps = DAG.isSplatValue(V2) && !DAG.isSplatValue(V1); in lowerVECTOR_SHUFFLE()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | vector-shuffle-combining.ll | 3356 ; SelectionDAG::isSplatValue - incorrect handling of undef sub-elements
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/ |
| H A D | PPCISelLowering.cpp | 9231 if (DAG.isSplatValue(Op, true) && in LowerBUILD_VECTOR()
|