[mlir] parallel loop canonicalization
authorTobias Gysi <tobias.gysi@inf.ethz.ch>
Fri, 26 Jun 2020 07:47:01 +0000 (09:47 +0200)
committerTobias Gysi <tobias.gysi@inf.ethz.ch>
Fri, 26 Jun 2020 07:57:08 +0000 (09:57 +0200)
commit48f1d4fcd27ca8aefc1cbe61b133a677f5bdcb93
tree7f73f2d76c888810036aff6ee94dfb68ac49ffa6
parentae47d158a096abad43d8f9056518d83b66c5a4b7
[mlir] parallel loop canonicalization

Summary:
The patch introduces a canonicalization pattern for parallel loops. The pattern removes single-iteration loop dimensions if the loop bounds and steps are constants.

Reviewers: herhut, ftynse

Reviewed By: herhut

Subscribers: mehdi_amini, rriddle, jpienaar, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, aartbik, liufengdb, stephenneuendorffer, Joonsoo, grosul1, Kayjukh, jurahul, msifontes

Tags: #mlir

Differential Revision: https://reviews.llvm.org/D82191
mlir/include/mlir/Dialect/SCF/SCFOps.td
mlir/lib/Dialect/SCF/SCF.cpp
mlir/test/Dialect/SCF/canonicalize.mlir [new file with mode: 0644]
mlir/test/Transforms/parallel-loop-collapsing.mlir