[VPlan] Check VPValue step in isCanonical (NFCI).
authorFlorian Hahn <flo@fhahn.com>
Sun, 16 Apr 2023 13:48:02 +0000 (14:48 +0100)
committerFlorian Hahn <flo@fhahn.com>
Sun, 16 Apr 2023 13:48:03 +0000 (14:48 +0100)
commit2db031528e3e0e2d6ab6087af9bae9e0ccbdfc06
tree5cf12388bfe90407cc1a9a6d2d1e17344c217de8
parent83ce139721260d176773d811f576289370f3313c
[VPlan] Check VPValue step in isCanonical (NFCI).

Update the isCanonical() implementations to check the VPValue step
operand instead of the step in the induction descriptor.

At the moment this is NFC, but it enables further optimizations if the
step is replaced by a constant in D147783.

Reviewed By: Ayal

Differential Revision: https://reviews.llvm.org/D147891
llvm/lib/Transforms/Vectorize/VPlan.h
llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp