[llvm] [LV][NFC] Autogen a test with integer costs per lane (PR #201560)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 5 05:20:54 PDT 2026
================
@@ -5769,7 +5776,10 @@ InstructionCost LoopVectorizationPlanner::cost(VPlan &Plan, ElementCount VF,
<< " (Estimated cost per lane: ");
if (Cost.isValid()) {
double CostPerLane = double(Cost.getValue()) / EstimatedWidth;
- LLVM_DEBUG(dbgs() << format("%.1f", CostPerLane));
+ if (PrintIntCostsPerLane)
+ LLVM_DEBUG(dbgs() << format("%.0f", CostPerLane));
+ else
+ LLVM_DEBUG(dbgs() << format("%.1f", CostPerLane));
----------------
david-arm wrote:
Good suggestion! Done here https://github.com/llvm/llvm-project/pull/201824
https://github.com/llvm/llvm-project/pull/201560
More information about the llvm-commits
mailing list