[llvm] [ExpandLargeFpConvert] Scalarize vector types. (PR #86954)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 2 06:58:34 PDT 2024
================
@@ -568,8 +568,30 @@ static void expandIToFP(Instruction *IToFP) {
IToFP->eraseFromParent();
}
+static void scalarize(Instruction *I, SmallVectorImpl<Instruction *> &Replace) {
+ VectorType *VTy = cast<VectorType>(I->getType());
+ assert(!VTy->isScalableTy() && "Tried to scalarize scalable vector!");
----------------
arsenm wrote:
Just cast<FixedVectorType>
https://github.com/llvm/llvm-project/pull/86954
More information about the llvm-commits
mailing list