[llvm] [LV][NFC] Add option to control debug printing of cost per lane (PR #201824)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 5 07:20:04 PDT 2026
================
@@ -375,6 +375,13 @@ cl::opt<bool> llvm::VPlanPrintVectorRegionScope(
"`-vplan-print-after*` if the plan has one."));
#endif
+#if !defined(NDEBUG)
+static cl::opt<bool> PrintCostPerLane(
+ "print-cost-per-lane", cl::init(true), cl::Hidden,
+ cl::desc("If the flag is set print out debug information containing the "
+ "cost per lane for each VF."));
----------------
paulwalker-arm wrote:
```suggestion
cl::desc("When printing vectorisation factor costs, include a cost-per-lane metric."));
```
https://github.com/llvm/llvm-project/pull/201824
More information about the llvm-commits
mailing list