[all-commits] [llvm/llvm-project] 974be2: [LoopInterchange] Fix assertion failure when LCSSA...

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


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

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopInterchange.cpp
    A llvm/test/Transforms/LoopInterchange/non-phi-uses-lcssa-phi.ll

  Log Message:
  -----------
  [LoopInterchange] Fix assertion failure when LCSSA PHI is used by non-PHI (#201059)

This patch fixes one of the assertion failures reported in #200819. The
root cause is that the assertion assumes all uses of LCSSA PHIs are PHI
nodes, which is not always true, so `cast<PHINode>(U)` can fail. In
fact, the user does not have to be a PHI, and the assertion should apply
the special check only when the user is a PHI node.



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