[all-commits] [llvm/llvm-project] 3a063d: [LoopNest]: Analysis to discover properties of a l...

whitneywhtsang via All-commits all-commits at lists.llvm.org
Tue Mar 3 05:25:40 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3a063d68e3c97136d10a2e770f389e6c13c3b317
      https://github.com/llvm/llvm-project/commit/3a063d68e3c97136d10a2e770f389e6c13c3b317
  Author: Whitney Tsang <whitneyt at ca.ibm.com>
  Date:   2020-03-03 (Tue, 03 Mar 2020)

  Changed paths:
    A llvm/include/llvm/Analysis/LoopNestAnalysis.h
    M llvm/lib/Analysis/CMakeLists.txt
    A llvm/lib/Analysis/LoopNestAnalysis.cpp
    M llvm/lib/Passes/PassBuilder.cpp
    M llvm/lib/Passes/PassRegistry.def
    A llvm/test/Analysis/LoopNestAnalysis/imperfectnest.ll
    A llvm/test/Analysis/LoopNestAnalysis/infinite.ll
    A llvm/test/Analysis/LoopNestAnalysis/perfectnest.ll
    M llvm/unittests/Analysis/CMakeLists.txt
    A llvm/unittests/Analysis/LoopNestTest.cpp

  Log Message:
  -----------
  [LoopNest]: Analysis to discover properties of a loop nest.

Summary: This patch adds an analysis pass to collect loop nests and
summarize properties of the nest (e.g the nest depth, whether the nest
is perfect, what's the innermost loop, etc...).

The motivation for this patch was discussed at the latest meeting of the
LLVM loop group (https://ibm.box.com/v/llvm-loop-nest-analysis) where we
discussed
the unimodular loop transformation framework ( “A Loop Transformation
Theory and an Algorithm to Maximize Parallelism”, Michael E. Wolf and
Monica S. Lam, IEEE TPDS, October 1991). The unimodular framework
provides a convenient way to unify legality checking and code generation
for several loop nest transformations (e.g. loop reversal, loop
interchange, loop skewing) and their compositions. Given that the
unimodular framework is applicable to perfect loop nests this is one
property of interest we expose in this analysis. Several other utility
functions are also provided. In the future other properties of interest
can be added in a centralized place.
Authored By: etiotto
Reviewer: Meinersbur, bmahjour, kbarton, Whitney, dmgreen, fhahn,
reames, hfinkel, jdoerfert, ppc-slack
Reviewed By: Meinersbur
Subscribers: bryanpkc, ppc-slack, mgorny, hiraditya, llvm-commits
Tag: LLVM
Differential Revision: https://reviews.llvm.org/D68789




More information about the All-commits mailing list