Home
last modified time | relevance | path

Searched refs:ScalarC (Results 1 – 4 of 4) sorted by relevance

/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DVectorUtilsTest.cpp86 Constant *ScalarC = IRB.getInt8(42); in TEST_F() local
87 EXPECT_FALSE(isSplatValue(ScalarC)); in TEST_F()
90 Constant *NonSplatC = ConstantVector::get({ScalarC, OtherScalarC}); in TEST_F()
93 Value *SplatC = IRB.CreateVectorSplat(5, ScalarC); in TEST_F()
97 IRB.CreateVectorSplat(ElementCount::getScalable(5), ScalarC); in TEST_F()
101 Constant *SplatWithUndefC = ConstantVector::get({ScalarC, UndefScalar}); in TEST_F()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp1347 Constant *ScalarC; in hoistInsEltConst() local
1352 match(InsElt2.getOperand(1), m_Constant(ScalarC)) && in hoistInsEltConst()
1354 Value *NewInsElt1 = Builder.CreateInsertElement(X, ScalarC, IdxC2); in hoistInsEltConst()
H A DInstCombineCompares.cpp6010 Constant *ScalarC = C->getSplatValue(/* AllowUndefs */ true); in foldVectorCmp() local
6012 if (ScalarC && match(M, m_SplatOrUndefMask(MaskSplatIndex))) { in foldVectorCmp()
6016 ScalarC); in foldVectorCmp()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp9955 double ScalarC = *VF.ScalarCost.getValue(); in areRuntimeChecksProfitable() local
9956 if (ScalarC == 0) in areRuntimeChecksProfitable()
9996 double MinTC1 = RtC / (ScalarC - VecCOverVF); in areRuntimeChecksProfitable()
10005 double MinTC2 = RtC * 10 / ScalarC; in areRuntimeChecksProfitable()