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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 10 06:55:27 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) << " "
----------------
fhahn wrote:

This seems unfortunate, due to VPI being both a VPValue & VPInstruction?

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


More information about the llvm-commits mailing list