[llvm] [LV] Reduce register usage for scaled reductions (PR #133090)

Sam Tebbs via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 10 07:35:03 PDT 2025


================
@@ -516,8 +516,8 @@ VPInstruction *VPlanSlp::buildGraph(ArrayRef<VPValue *> Values) {
   auto *Inst = cast<VPInstruction>(Values[0])->getUnderlyingInstr();
   auto *VPI = new VPInstruction(Opcode, CombinedOperands, Inst->getDebugLoc());
 
-  LLVM_DEBUG(dbgs() << "Create VPInstruction " << *VPI << " "
-                    << *cast<VPInstruction>(Values[0]) << "\n");
+  LLVM_DEBUG(dbgs() << "Create VPInstruction " << cast<VPValue>(*VPI) << " "
----------------
SamTebbs33 wrote:

Exactly, it was an ambiguous call to `operator<<`. Sander's latest suggestion to replace the VPValue print function with the VPRecipeBase one makes it unnecessary though.

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


More information about the llvm-commits mailing list