[llvm] [LV] Add initial support for vectorizing literal struct return values (PR #109833)
Benjamin Maxwell via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 10 07:15:07 PDT 2024
================
@@ -122,6 +122,8 @@ Type *VPTypeAnalysis::inferScalarTypeForRecipe(const VPWidenRecipe *R) {
case Instruction::FNeg:
case Instruction::Freeze:
return inferScalarType(R->getOperand(0));
+ case Instruction::ExtractValue:
+ return R->getUnderlyingInstr()->getType();
----------------
MacDue wrote:
I think this should return a struct of scalars (so a "narrow" type rather than a scalar).
https://github.com/llvm/llvm-project/pull/109833
More information about the llvm-commits
mailing list