[llvm] [VPlan] Add hidden `-vplan-print-after-all` option (PR #175839)
Andrei Elovikov via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 27 10:28:26 PST 2026
================
@@ -933,7 +936,12 @@ void VPlan::execute(VPTransformState *State) {
LLVM_DEBUG(dbgs() << "Executing best plan with VF=" << State->VF
<< ", UF=" << getUF() << '\n');
setName("Final VPlan");
+ // TODO: -debug-only=loop-vectorize should probably just imply
+ // `-vplan-print-after-all`, but the latter is much more verbose than the
+ // former, so doing that would require updating existing tests and that hasn't
+ // been done (yet). For now, just do both:
----------------
eas wrote:
The way I envision it is to add `-vplan-print-after=<pass>` in a future PR and change those tests to specify after which transformation they want to `CHECK`.
> I presume all the intermediate VPlans have the same "initial vplan" name?
There are changes in VF/UF and "initial" is dropped/changed at one point, but that isn't well defined, IMO. Explicit `-vplan-print-after=<>` from above seems a better direction to me.
https://github.com/llvm/llvm-project/pull/175839
More information about the llvm-commits
mailing list