[all-commits] [llvm/llvm-project] 93d110: [MLIR][LoopOps] Adds the loop unroll transformatio...

andydavis1 via All-commits all-commits at lists.llvm.org
Tue May 5 10:42:56 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 93d1108801ddfe3d5e68296cdc62e44b3382e31e
      https://github.com/llvm/llvm-project/commit/93d1108801ddfe3d5e68296cdc62e44b3382e31e
  Author: Andy Davis <andydavis at google.com>
  Date:   2020-05-05 (Tue, 05 May 2020)

  Changed paths:
    M mlir/include/mlir/Transforms/LoopUtils.h
    M mlir/lib/Transforms/Utils/LoopUtils.cpp
    A mlir/test/Dialect/Loops/loop-unroll.mlir
    M mlir/test/lib/Transforms/CMakeLists.txt
    A mlir/test/lib/Transforms/TestLoopUnrolling.cpp
    M mlir/tools/mlir-opt/mlir-opt.cpp

  Log Message:
  -----------
  [MLIR][LoopOps] Adds the loop unroll transformation for loop::ForOp.

Summary:
Adds the loop unroll transformation for loop::ForOp.
Adds support for promoting the body of single-iteration loop::ForOps into its containing block.
Adds check tests for loop::ForOps with dynamic and static lower/upper bounds and step.
Care was taken to share code (where possible) with the AffineForOp unroll transformation to ease maintenance and potential future transition to a LoopLike construct on which loop transformations for different loop types can implemented.

Reviewers: ftynse, nicolasvasilache

Reviewed By: ftynse

Subscribers: bondhugula, mgorny, zzheng, mehdi_amini, rriddle, jpienaar, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, aartbik, liufengdb, Joonsoo, grosul1, frgossen, Kayjukh, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list