[llvm] [VPlan] Demarcate VPIs that gen scalars (NFC) (PR #196207)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 30 08:50:18 PDT 2026


================
@@ -1434,12 +1434,12 @@ class LLVM_ABI_FOR_TEST VPInstruction : public VPRecipeWithIRFlags,
 
   /// Returns true if we can generate a scalar for the first lane only if
   /// needed.
-  bool canGenerateScalarForFirstLane() const;
+  bool doesGenerateSingleScalar() const;
----------------
fhahn wrote:

Yes that is indeed a bit unfortunate. Eventually I think we should merge them, by encoding the single-scalarness in VPInstruction (also needed for https://github.com/llvm/llvm-project/pull/129712). I put up https://github.com/llvm/llvm-project/pull/227761 to get things started

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


More information about the llvm-commits mailing list