[all-commits] [llvm/llvm-project] fdb9f9: [LV] Consider earlier stores to invariant reductio...

Florian Hahn via All-commits all-commits at lists.llvm.org
Sun Aug 4 12:58:56 PDT 2024


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

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/test/Transforms/LoopVectorize/X86/cost-model.ll

  Log Message:
  -----------
  [LV] Consider earlier stores to invariant reduction address as dead.

For invariant stores to an address of a reduction, only the latest store
will be generated outside the loop. Consider earlier stores as dead.

This fixes a difference between the legacy and VPlan-based cost model.

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



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