[all-commits] [llvm/llvm-project] aac8ac: [VPlan] Model masked assumes as replicate recipes, ...

Florian Hahn via All-commits all-commits at lists.llvm.org
Sun Aug 6 12:56:53 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aac8acb11551225b6a8083102e828154e3e76e47
      https://github.com/llvm/llvm-project/commit/aac8acb11551225b6a8083102e828154e3e76e47
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2023-08-06 (Sun, 06 Aug 2023)

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

  Log Message:
  -----------
  [VPlan] Model masked assumes as replicate recipes, drop them (NFCI).

Replace ConditionalAssume set by treating conditional assumes like other
predicated instructions (i.e. create a VPReplicateRecipe with a mask)
and later remove any assume recipes with masks during VPlan cleanup.

This reduces coupling of VPlan construction and Legal by removing a
shared set between the 2 and results in a cleaner code structure
overall.

Reviewed By: Ayal

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




More information about the All-commits mailing list