[PATCH] D75513: [mlir] support reductions in loop to std conversion

Alex Zinenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 3 04:35:18 PST 2020


ftynse created this revision.
ftynse added a reviewer: nicolasvasilache.
Herald added subscribers: llvm-commits, Joonsoo, liufengdb, lucyrfox, mgester, arpith-jacob, antiagainst, shauheen, burmako, jpienaar, rriddle, mehdi_amini.
Herald added a project: LLVM.
ftynse added a subscriber: poechsel.

Introduce support for converting loop.for operations with loop-carried values
to a CFG in the standard dialect. This is achieved by passing loop-carried
values as block arguments to the loop condition block. This block dominates
both the loop body and the block immediately following the loop, so the
arguments of this block are remain visible there.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D75513

Files:
  mlir/lib/Conversion/LoopToStandard/ConvertLoopToStandard.cpp
  mlir/test/Conversion/convert-to-cfg.mlir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75513.247855.patch
Type: text/x-patch
Size: 9426 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200303/6002d1af/attachment.bin>


More information about the llvm-commits mailing list