[llvm] [VPlan] Introduce explicit broadcasts for live-ins. (PR #124644)

via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 6 14:06:53 PST 2025


================
@@ -90,6 +90,7 @@ Type *VPTypeAnalysis::inferScalarTypeForRecipe(const VPInstruction *R) {
            inferScalarType(R->getOperand(1))->isIntegerTy(1) &&
            "LogicalAnd operands should be bool");
     return IntegerType::get(Ctx, 1);
+  case VPInstruction::Broadcast:
   case VPInstruction::PtrAdd:
     // Return the type based on the pointer argument (i.e. first operand).
----------------
ayalz wrote:

Update comment - first operand of Broadcast may not be a pointer.

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


More information about the llvm-commits mailing list