[llvm] [ExpandLargeDivRem] Scalarize vector types. (PR #86959)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 28 07:54:43 PDT 2024
================
@@ -54,8 +54,34 @@ static bool isSigned(unsigned int Opcode) {
return Opcode == Instruction::SDiv || Opcode == Instruction::SRem;
}
+static void scalarize(BinaryOperator *BO,
+ SmallVectorImpl<BinaryOperator *> &Replace) {
+ VectorType *VTy = cast<VectorType>(BO->getType());
+ assert(!VTy->isScalableTy() && "Tried to scalarize scalable vector!");
----------------
arsenm wrote:
What's the difficulty with just directly handling vectors?
https://github.com/llvm/llvm-project/pull/86959
More information about the llvm-commits
mailing list