[all-commits] [llvm/llvm-project] 1e5f7f: [LoopInterchange] Handle confused dependence corre...

Ryotaro Kasuga via All-commits all-commits at lists.llvm.org
Thu Jun 5 00:44:24 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1e5f7f64b0c1a816a460f02af9bd9a65f79184c3
      https://github.com/llvm/llvm-project/commit/1e5f7f64b0c1a816a460f02af9bd9a65f79184c3
  Author: Ryotaro Kasuga <kasuga.ryotaro at fujitsu.com>
  Date:   2025-06-05 (Thu, 05 Jun 2025)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopInterchange.cpp
    A llvm/test/Transforms/LoopInterchange/confused-dependence.ll
    M llvm/test/Transforms/LoopInterchange/pr43326-ideal-access-pattern.ll
    M llvm/test/Transforms/LoopInterchange/unique-dep-matrix.ll

  Log Message:
  -----------
  [LoopInterchange] Handle confused dependence correctly (#140709)

This patch fixes the handling of a confused `Dependence` object. Such an
object doesn’t contain any information about dependencies, so we must
process it conservatively. However, it was converted into a direction
vector like `[I I ... I]`. As a result, it was treated as if there are
no loop-carried dependencies, which can lead to illegal loop exchanges.

Fixes #140238



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