[all-commits] [llvm/llvm-project] 3ef330: [UnrollAndJam] Do not preserve loop nests if a loo...

David Green via All-commits all-commits at lists.llvm.org
Sat Mar 29 12:21:57 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3ef33066bb32a9d9b76d72c6de6a7ae9ff72ddcc
      https://github.com/llvm/llvm-project/commit/3ef33066bb32a9d9b76d72c6de6a7ae9ff72ddcc
  Author: David Green <david.green at arm.com>
  Date:   2025-03-29 (Sat, 29 Mar 2025)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopUnrollAndJamPass.cpp
    A llvm/test/Transforms/LoopUnrollAndJam/delete_middle_loop.ll

  Log Message:
  -----------
  [UnrollAndJam] Do not preserve loop nests if a loop was fully unrolled. (#133510)

If UnJ completely unrolls a loop and removes it entirely, the loop
remains in the current loop nest. If the loop nest gets reused the loops
will no longer be valid. As there is no way to remove a loop from a
LoopNest, this patch removes the preserve of the LoopNestAnalysis so
that it will be regenerated.

Fixes #124518



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