[llvm] [SLP][REVEC] Initial commits. (PR #98269)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 10 05:58:25 PDT 2024
================
@@ -227,15 +231,26 @@ static const unsigned MaxPHINumOperands = 128;
/// avoids spending time checking the cost model and realizing that they will
/// be inevitably scalarized.
static bool isValidElementType(Type *Ty) {
+ if (RunSLPReVectorization && isa<FixedVectorType>(Ty))
+ Ty = Ty->getScalarType();
----------------
alexey-bataev wrote:
Do you need the check here? Better just use Ty->getScalarTy() directly here and check for RunSLPReVectorization only where the vectorization is requested
https://github.com/llvm/llvm-project/pull/98269
More information about the llvm-commits
mailing list