[all-commits] [llvm/llvm-project] c8ad04: [LoopInterchange] Consolidate induction and reduct...

Ryotaro Kasuga via All-commits all-commits at lists.llvm.org
Thu Jun 11 05:49:22 PDT 2026


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

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopInterchange.cpp
    M llvm/test/Transforms/LoopInterchange/reduction2mem-limitation.ll

  Log Message:
  -----------
  [LoopInterchange] Consolidate induction and reduction vars check (#203197)

Previously, the handling of PHI nodes in loop headers was scattered. In
particular, there were two separate functions, `findInductions` and
`findInductionAndReductions`, which made the code difficult to reason
about. This patch consolidates these two functions, along with their
related caller logic, into a single function,
`checkInductionsAndReductions`. Although some remarks and debug outputs
have changed as a result, I believe the functionality itself remains
unchanged.



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