[all-commits] [llvm/llvm-project] d7a6f3: [LoopNest] Extend `LPMUpdater` and adaptor to hand...

Ta-Wei Tu via All-commits all-commits at lists.llvm.org
Mon Dec 21 16:47:57 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d7a6f3a1056a5f5212fa561a909fcfa502126074
      https://github.com/llvm/llvm-project/commit/d7a6f3a1056a5f5212fa561a909fcfa502126074
  Author: Ta-Wei Tu <tu.da.wei at gmail.com>
  Date:   2020-12-22 (Tue, 22 Dec 2020)

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

  Log Message:
  -----------
  [LoopNest] Extend `LPMUpdater` and adaptor to handle loop-nest passes

This is a follow-up patch of D87045.

The patch implements "loop-nest mode" for `LPMUpdater` and `FunctionToLoopPassAdaptor` in which only top-level loops are operated.

`createFunctionToLoopPassAdaptor` decides whether the returned adaptor is in loop-nest mode or not based on the given pass. If the pass is a loop-nest pass or the pass is a `LoopPassManager` which contains only loop-nest passes, the loop-nest version of adaptor is returned; otherwise, the normal (loop) version of adaptor is returned.

Reviewed By: Whitney

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




More information about the All-commits mailing list