[all-commits] [llvm/llvm-project] 2db031: [VPlan] Check VPValue step in isCanonical (NFCI).

Florian Hahn via All-commits all-commits at lists.llvm.org
Sun Apr 16 06:48:33 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2db031528e3e0e2d6ab6087af9bae9e0ccbdfc06
      https://github.com/llvm/llvm-project/commit/2db031528e3e0e2d6ab6087af9bae9e0ccbdfc06
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2023-04-16 (Sun, 16 Apr 2023)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlan.h
    M llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
    M llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list