[all-commits] [llvm/llvm-project] 105032: [LV] Use PHI recipe instead of PredRecipe for subs...

Florian Hahn via All-commits all-commits at lists.llvm.org
Mon Jul 18 01:35:56 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 105032f5490817ca678338d0ce964dd06aba178f
      https://github.com/llvm/llvm-project/commit/105032f5490817ca678338d0ce964dd06aba178f
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-07-18 (Mon, 18 Jul 2022)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h
    M llvm/test/Transforms/LoopVectorize/first-order-recurrence-sink-replicate-region.ll
    M llvm/test/Transforms/LoopVectorize/vplan-sink-scalars-and-merge.ll

  Log Message:
  -----------
  [LV] Use PHI recipe instead of PredRecipe for subsequent uses.

At the moment, the VPPRedInstPHIRecipe is not used in subsequent uses of
the predicate recipe. This incorrectly models the def-use chains, as all
later uses should use the phi recipe. Fix that by delaying recording of
the recipe.

Reviewed By: Ayal

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




More information about the All-commits mailing list