[all-commits] [llvm/llvm-project] e3129f: [LoopFlatten] Mark inner loop as deleted

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Oct 8 14:12:32 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e3129fb792b4b01b348b27d72955f2f8300834fa
      https://github.com/llvm/llvm-project/commit/e3129fb792b4b01b348b27d72955f2f8300834fa
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-10-08 (Fri, 08 Oct 2021)

  Changed paths:
    M llvm/include/llvm/Transforms/Scalar/LoopPassManager.h
    M llvm/lib/Transforms/Scalar/LoopFlatten.cpp

  Log Message:
  -----------
  [LoopFlatten] Mark inner loop as deleted

If a loop is flattened, the inner loop is removed and the LPM
should be informed of this fact, so it can invalidate associated
analyses. To support this, we relax an assertion in LPMUpdater to
allow invalidating non-top-level loops when running in LoopNestMode,
as the pass does not know how exactly it will get scheduled.

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




More information about the All-commits mailing list