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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed May 28 13:31:24 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 ");
----------------
fhahn wrote:

Thanks, I think both are better than SINGLE-SCALAR! I went with `EMIT-SCALAR` for now, as it is slightly shorter.

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


More information about the llvm-commits mailing list