[all-commits] [llvm/llvm-project] df4a61: [VPlan] Convert induction increment check to be VP...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Sun Jan 5 03:17:02 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: df4a615c988f3ae56f7e68a7df86acb60f16493a
https://github.com/llvm/llvm-project/commit/df4a615c988f3ae56f7e68a7df86acb60f16493a
Author: Florian Hahn <flo at fhahn.com>
Date: 2025-01-05 (Sun, 05 Jan 2025)
Changed paths:
M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
M llvm/lib/Transforms/Vectorize/VPlan.h
M llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h
M llvm/test/Transforms/LoopVectorize/X86/induction-step.ll
Log Message:
-----------
[VPlan] Convert induction increment check to be VPlan-based.
Check the VPlan directly to determine if a VPValue is an optimiziable IV
or IV use instead of checking the underlying IR instructions.
Split off from https://github.com/llvm/llvm-project/pull/112147. This
refactoring enables moving IV end value creation from the legacy
fixupIVUsers to a VPlan-based transform.
There is one case we now won't optimize, that is IVs with subtracts and
non-constant steps. But as this is a minor optimization and doesn't
impact correctness, the benefits of performing the check in VPlan should
outweigh the missed case.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list