From 2ce526b4fe3d416e5758d5896995e2e9cdcbbc56 Mon Sep 17 00:00:00 2001 From: Ramkumar Ramachandra Date: Mon, 3 Nov 2025 10:20:09 +0000 Subject: [PATCH] [VPlan] Strip bad TODO in VPTransformState::get (NFC) It's impossible to create a VPInstruction::Broadcast at this point, since we need to return an IR Value, which would only be possible after the VPInstruction is executed. --- llvm/lib/Transforms/Vectorize/VPlan.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/llvm/lib/Transforms/Vectorize/VPlan.cpp b/llvm/lib/Transforms/Vectorize/VPlan.cpp index 428a8f4c1348f..84c9c9c2de645 100644 --- a/llvm/lib/Transforms/Vectorize/VPlan.cpp +++ b/llvm/lib/Transforms/Vectorize/VPlan.cpp @@ -319,7 +319,6 @@ Value *VPTransformState::get(const VPValue *Def, bool NeedsScalar) { // We need to construct the vector value for a single-scalar value by // broadcasting the scalar to all lanes. - // TODO: Replace by introducing Broadcast VPInstructions. assert(IsSingleScalar && "must be a single-scalar at this point"); // Set the insert point after the last scalarized instruction or after the // last PHI, if LastInst is a PHI. This ensures the insertelement sequence