[all-commits] [llvm/llvm-project] 2f8a39: [LoopInterchange] Fix crash when followLCSSA retur...

Ryotaro Kasuga via All-commits all-commits at lists.llvm.org
Fri Jun 12 13:38:51 PDT 2026


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

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopInterchange.cpp
    M llvm/test/Transforms/LoopInterchange/lcssa-incoming-value-is-not-instr.ll

  Log Message:
  -----------
  [LoopInterchange] Fix crash when followLCSSA returns constant (#203515)

Similar as the case in ##201069, `followLCSSA` may return a constant
value, but it was cast to Instruction unconditionally. We need to
explicitly check whether the returned value is an Instruction or not.

Fix #203375.



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