[all-commits] [llvm/llvm-project] 65da32: [LV] Account for any-of reduction when computing c...

Florian Hahn via All-commits all-commits at lists.llvm.org
Fri Oct 11 03:27:54 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 65da32c634a8345fcbe021f69fc6a609d074c08c
      https://github.com/llvm/llvm-project/commit/65da32c634a8345fcbe021f69fc6a609d074c08c
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2024-10-11 (Fri, 11 Oct 2024)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    A llvm/test/Transforms/LoopVectorize/RISCV/blend-any-of-reduction-cost.ll

  Log Message:
  -----------
  [LV] Account for any-of reduction when computing costs of blend phis.

Any-of reductions are narrowed to i1. Update the legacy cost model to
use the correct type when computing the cost of a phi that gets lowered
to selects (BLEND).

This fixes a divergence between legacy and VPlan-based cost models after
36fc291b6ec6d.

Fixes https://github.com/llvm/llvm-project/issues/111874.



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