[all-commits] [llvm/llvm-project] c493e9: [VPlan] Move reduction start value creation to wid...

Florian Hahn via All-commits all-commits at lists.llvm.org
Fri Jan 8 09:50:46 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c493e9216bd1700577b209a0e2d290145653e40d
      https://github.com/llvm/llvm-project/commit/c493e9216bd1700577b209a0e2d290145653e40d
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2021-01-08 (Fri, 08 Jan 2021)

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

  Log Message:
  -----------
  [VPlan] Move reduction start value creation to widenPHIRecipe.

This was suggested to prepare for D93975.

By moving the start value creation to widenPHInstruction, we set the
stage to manage the start value directly in VPWidenPHIRecipe, which be
used subsequently to set the 'resume' value for reductions during
epilogue vectorization.

It also moves RdxDesc to the recipe, so we do not have to rely on Legal
to look it up later.

Reviewed By: gilr

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




More information about the All-commits mailing list