[all-commits] [llvm/llvm-project] 41c1a7: [LV] Don't add fixed-order recurrence phis to forc...

Florian Hahn via All-commits all-commits at lists.llvm.org
Wed Apr 16 13:58:42 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 41c1a7be3f1a2556e407e761acb766a5d103d691
      https://github.com/llvm/llvm-project/commit/41c1a7be3f1a2556e407e761acb766a5d103d691
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2025-04-16 (Wed, 16 Apr 2025)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/test/Transforms/LoopVectorize/X86/fixed-order-recurrence.ll

  Log Message:
  -----------
  [LV] Don't add fixed-order recurrence phis to forced scalars.

Fixed-order recurrence phis cannot be forced to be scalar, they will
always be widened at the moment.

Make sure we don't add them to ForcedScalars, otherwise the legacy cost
model will compute incorrect costs.

This fixes an assertion reported with
https://github.com/llvm/llvm-project/pull/129645.



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