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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 10 14:11: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();
----------------
fhahn wrote:

Hmm, would it work to infer the scalar type of the operand and then extract the type for the index?

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


More information about the llvm-commits mailing list