[all-commits] [llvm/llvm-project] ad756c: [VPlan] Reuse mask of immediate dominator in VPlan...

Mel Chen via All-commits all-commits at lists.llvm.org
Fri Mar 13 03:45:30 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ad756c7de5ebdde7f7dd06232c007b03b1b8c55b
      https://github.com/llvm/llvm-project/commit/ad756c7de5ebdde7f7dd06232c007b03b1b8c55b
  Author: Mel Chen <mel.chen at sifive.com>
  Date:   2026-03-13 (Fri, 13 Mar 2026)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlanPredicator.cpp
    M llvm/test/Transforms/LoopVectorize/RISCV/blocks-with-dead-instructions.ll
    M llvm/test/Transforms/LoopVectorize/RISCV/low-trip-count.ll
    M llvm/test/Transforms/LoopVectorize/RISCV/tail-folding-complex-mask.ll
    M llvm/test/Transforms/LoopVectorize/VPlan/predicator.ll

  Log Message:
  -----------
  [VPlan] Reuse mask of immediate dominator in VPlanPredicator (#185595)

Previously, VPlanPredicator only reused the mask of the loop header when
a block post-dominates the header. This patch generalizes the
optimization to reuse the mask of immediate dominator when a block
post-dominates its immediate dominator.
This reduces more redundant mask computations, simplifies the generated
code, and improves EVL tail folding.

Based on #173265
Fix #173260



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