[llvm] [VPlan] Encode single-scalar-ness of VPInstruction in a field (NFC). (PR #227761)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 8 02:07:34 PDT 2026
================
@@ -1447,9 +1438,13 @@ class LLVM_ABI_FOR_TEST VPInstruction : public VPRecipeWithIRFlags,
/// An optional name that can be used for the generated IR instruction.
std::string Name;
- /// Returns true if we can generate a scalar for the first lane only if
- /// needed.
- bool doesGenerateSingleScalar() const;
+ /// Whether this VPInstruction produces a single scalar value.
+ const bool GeneratesSingleScalar;
----------------
lukel97 wrote:
Is it worth naming it `IsSingleScalar` to match VPReplicateRecipe?
https://github.com/llvm/llvm-project/pull/227761
More information about the llvm-commits
mailing list