[all-commits] [llvm/llvm-project] 906968: [LoopInterchange] Add tests for func attributes ca...

Ryotaro Kasuga via All-commits all-commits at lists.llvm.org
Wed Jun 3 06:09:15 PDT 2026


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

  Changed paths:
    M llvm/test/Transforms/LoopInterchange/function-attr.ll

  Log Message:
  -----------
  [LoopInterchange] Add tests for func attributes called in loops (NFC) (#201331)

LoopInterchange has special handling for call instructions. In general,
loops that contain call instructions are not legal to interchange, but
if a call satisfies certain conditions, we allow the interchange to
proceed. Currently, the legality checker only verifies whether the call
reads or writes memory. However, as pointed out in
https://github.com/llvm/llvm-project/pull/200828#issuecomment-4593914293,
we also need to ensure that the call does not diverge. Otherwise, an
illegal interchange may occur.
This patch adds test cases that demonstrate the issue, which will be
fixed in a follow-up patch.



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