[llvm] [LV] Add initial support for vectorizing literal struct return values (PR #109833)

Sam Tebbs via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 10 01:41:37 PDT 2024


================
@@ -2304,7 +2304,9 @@ void InnerLoopVectorizer::scalarizeInstruction(const Instruction *Instr,
                                                VPReplicateRecipe *RepRecipe,
                                                const VPLane &Lane,
                                                VPTransformState &State) {
-  assert(!Instr->getType()->isAggregateType() && "Can't handle vectors");
+  assert((!Instr->getType()->isAggregateType() ||
+          canWidenType(Instr->getType())) &&
+         "widenable type or non-aggregate type!");
----------------
SamTebbs33 wrote:

nit: Capital W and I don't think we need the exclamation mark.

https://github.com/llvm/llvm-project/pull/109833


More information about the llvm-commits mailing list