[all-commits] [llvm/llvm-project] 914487: [LoopInterchange] Add an option to control the cos...

Ryotaro Kasuga via All-commits all-commits at lists.llvm.org
Sun Mar 30 18:14:17 PDT 2025


  Branch: refs/heads/users/kasuga-fj/loop-interchange-option-profitabilities
  Home:   https://github.com/llvm/llvm-project
  Commit: 91448733582cacc87cc8105cdf36154ee29e0a99
      https://github.com/llvm/llvm-project/commit/91448733582cacc87cc8105cdf36154ee29e0a99
  Author: Ryotaro Kasuga <kasuga.ryotaro at fujitsu.com>
  Date:   2025-03-27 (Thu, 27 Mar 2025)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopInterchange.cpp
    M llvm/test/Transforms/LoopInterchange/profitability-vectorization.ll

  Log Message:
  -----------
  [LoopInterchange] Add an option to control the cost heuristics applied

LoopInterchange has several heuristic functions to determine if
exchanging two loops is profitable or not. Whether or not to use each
heuristic and the order in which to use them were fixed, but #125830
allows them to be changed internally at will. This patch adds a new
option to control them via the compiler option.

The previous patch also added an option to prioritize the vectorization
heuristic. This patch also removes it to avoid conflicts between it and
the newly introduced one, e.g., both
`-loop-interchange-prioritize-vectorization=1` and
`-loop-interchange-profitabilities='cache,vectorization'` are specified.



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