[all-commits] [llvm/llvm-project] c17f62: [LoopInterchange] Check all inner-exit LCSSA PHIs ...

Madhur Amilkanthwar via All-commits all-commits at lists.llvm.org
Wed Jun 3 21:29:27 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c17f6208157d04b730576d84c8998f7bd8112cef
      https://github.com/llvm/llvm-project/commit/c17f6208157d04b730576d84c8998f7bd8112cef
  Author: Madhur Amilkanthwar <madhura at nvidia.com>
  Date:   2026-06-04 (Thu, 04 Jun 2026)

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

  Log Message:
  -----------
  [LoopInterchange] Check all inner-exit LCSSA PHIs (#200860)

areInnerLoopExitPHIsSupported() returned true as soon as it saw the
reduction LCSSA PHI, skipping the user-check for any later LCSSA PHIs.
If one had a non-PHI user, legality wrongly succeeded and the transform
hit a cast<PHINode> assertion. Use continue so the remaining PHIs are
still validated.

Fixes #200811.



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