[all-commits] [llvm/llvm-project] 5f2854: [LV] Always create VPWidenCanonicalIVRecipe, optim...

Florian Hahn via All-commits all-commits at lists.llvm.org
Sat Jan 22 07:34:54 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5f2854f1daa79373ef67211bebce5e08f087c3b3
      https://github.com/llvm/llvm-project/commit/5f2854f1daa79373ef67211bebce5e08f087c3b3
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-01-22 (Sat, 22 Jan 2022)

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

  Log Message:
  -----------
  [LV] Always create VPWidenCanonicalIVRecipe, optimize away later.

This patch updates createBlockInMask to always generate
VPWidenCanonicalIVRecipe and adds a transform to optimize it away later,
if it is not needed.

This is a step towards breaking up VPWidenIntOrFpInductionRecipe and
explicitly distinguishing between vector phis and scalarizing.

Split off from D116123.

Reviewed By: Ayal

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




More information about the All-commits mailing list