[all-commits] [llvm/llvm-project] d1d356: [LV] Move code to place pointer induction incremen...

Florian Hahn via All-commits all-commits at lists.llvm.org
Tue Mar 29 12:28:55 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d1d3563278589b2e19077e6a81cd9455d0195577
      https://github.com/llvm/llvm-project/commit/d1d3563278589b2e19077e6a81cd9455d0195577
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-03-29 (Tue, 29 Mar 2022)

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

  Log Message:
  -----------
  [LV] Move code to place pointer induction increment to VPlan post-processing.

This patch moves the code to set the correct incoming block for the
backedge value to VPlan::execute.

When generating the phi node, the backedge value is temporarily added
using the pre-header as incoming block. The invalid phi node will be
fixed up during VPlan::execute after main VPlan code generation.
At the same time, the backedge value is also moved to the latch.

This change removes the requirement to create the latch block up-front
for VPWidenInductionPHIRecipe::execute, which in turn will enable
modeling the pre-header in VPlan.

Depends on D121617.

Reviewed By: Ayal

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




More information about the All-commits mailing list