[llvm] [VPlan] Introduce vputils::onlyScalarsUsed (NFC) (PR #153577)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 14 08:21:07 PDT 2025


================
@@ -25,6 +25,9 @@ bool onlyFirstLaneUsed(const VPValue *Def);
 /// Returns true if only the first part of \p Def is used.
 bool onlyFirstPartUsed(const VPValue *Def);
 
+/// Returns true if \p Def only uses scalars.
----------------
fhahn wrote:

The comment is the wrong way round I think. It is checking if all users of Def only use scalar values from Def.

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


More information about the llvm-commits mailing list