[all-commits] [llvm/llvm-project] a00aaf: [VPlan] Iterate over phi recipes to detect reducti...

Florian Hahn via All-commits all-commits at lists.llvm.org
Sat Aug 7 06:07:45 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a00aafc30dbcd24c9258e3cb575d2afb49266df0
      https://github.com/llvm/llvm-project/commit/a00aafc30dbcd24c9258e3cb575d2afb49266df0
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2021-08-07 (Sat, 07 Aug 2021)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

  Log Message:
  -----------
  [VPlan] Iterate over phi recipes to detect reductions to fix.

After refactoring the phi recipes, we can now iterate over all header
phis in a VPlan to detect reductions when it comes to fixing them up
when tail folding.

This reduces the coupling with the cost model & legal by using the
information directly available in VPlan. It also removes a call to
getOrAddVPValue, which references the original IR value which may
become outdated after VPlan transformations.

Reviewed By: Ayal

Differential Revision: https://reviews.llvm.org/D100102




More information about the All-commits mailing list