[all-commits] [llvm/llvm-project] 8ae0d9: [LoopDeletion] Clear block & loop dispo cache afte...

Florian Hahn via All-commits all-commits at lists.llvm.org
Fri Sep 30 03:22:31 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8ae0d9aa072643a7c596e147e3fc7ee0b4dede1f
      https://github.com/llvm/llvm-project/commit/8ae0d9aa072643a7c596e147e3fc7ee0b4dede1f
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-09-30 (Fri, 30 Sep 2022)

  Changed paths:
    M llvm/lib/Analysis/ScalarEvolution.cpp
    M llvm/lib/Transforms/Utils/LoopUtils.cpp

  Log Message:
  -----------
  [LoopDeletion] Clear block & loop dispo cache after breaking backedge.

breakLoopBackedge may remove blocks and loops. Also clear block &
loop disposition to avoid the cache containing invalid blocks and loops.

The coverage for the change is provided when using an ASAN build of opt
to run the LoopDeletion unit tests; without the fix, pointers to invalid
objects would be used.

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D134663




More information about the All-commits mailing list