[all-commits] [llvm/llvm-project] 4d9a7f: [VPlan] Remove dead recipes before simplifying ble...

Mel Chen via All-commits all-commits at lists.llvm.org
Wed Sep 10 01:03:39 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4d9a7fa9bad0d3f7eba801b784d4caa896d224d7
      https://github.com/llvm/llvm-project/commit/4d9a7fa9bad0d3f7eba801b784d4caa896d224d7
  Author: Mel Chen <mel.chen at sifive.com>
  Date:   2025-09-10 (Wed, 10 Sep 2025)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
    M llvm/test/Transforms/LoopVectorize/if-pred-non-void.ll
    M llvm/test/Transforms/LoopVectorize/vplan-printing.ll

  Log Message:
  -----------
  [VPlan] Remove dead recipes before simplifying blends (#157622)

In simplifyBlends, when normalizing a blend recipe, the first mask that
is used only by the blend and is not all-false is chosen, and its
corresponding incoming value becomes the initial value, with the others
blended into it. At the same time, the mask that is chosen can be
eliminated. However, a multi-user mask might be used by a dead recipe,
which prevents this optimization. This patch moves removeDeadRecipes
before simplifyBlends to eliminate dead recipes, allowing simplifyBlends
to remove more dead masks.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list