[all-commits] [llvm/llvm-project] 5bcc82: [LoopPeel] Fix LCSSA phi node invalidation

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Sep 20 08:02:11 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5bcc82d43388bb0daa122d5fe7ecda5eca27fc16
      https://github.com/llvm/llvm-project/commit/5bcc82d43388bb0daa122d5fe7ecda5eca27fc16
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-09-20 (Fri, 20 Sep 2024)

  Changed paths:
    M llvm/lib/Transforms/Utils/LoopPeel.cpp
    A llvm/test/Transforms/LoopUnroll/pr109333.ll

  Log Message:
  -----------
  [LoopPeel] Fix LCSSA phi node invalidation

In the test case, the BECount of the second loop uses %load,
but we only have an LCSSA phi node for %add, so that is what
gets invalidated. Use the forgetLcssaPhiWithNewPredecessor()
API instead, which will invalidate the roots of the expression
instead.

Fixes https://github.com/llvm/llvm-project/issues/109333.



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