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

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Sep 30 23:52:40 PDT 2024


  Branch: refs/heads/release/19.x
  Home:   https://github.com/llvm/llvm-project
  Commit: aaa7027716ad347cda75865e99a2ff654bed6bf1
      https://github.com/llvm/llvm-project/commit/aaa7027716ad347cda75865e99a2ff654bed6bf1
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-10-01 (Tue, 01 Oct 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.

(cherry picked from commit 5bcc82d43388bb0daa122d5fe7ecda5eca27fc16)



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