[llvm] [VPlan] Use SINGLE-SCALAR when printing single-scalar VPInstructions. (PR #141428)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Tue May 27 02:53:12 PDT 2025


================
@@ -965,7 +965,7 @@ void VPInstruction::dump() const {
 
 void VPInstruction::print(raw_ostream &O, const Twine &Indent,
                           VPSlotTracker &SlotTracker) const {
-  O << Indent << "EMIT ";
+  O << Indent << (isSingleScalar() ? "SINGLE-SCALAR " : "EMIT ");
----------------
lukel97 wrote:

Or print it like a flag, something like `EMIT single-scalar vp<%foo> = ...`

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


More information about the llvm-commits mailing list