[PATCH] D72836: [mlir][spirv] Add lowering from `loop.if` to `spv.selection`

Denis Khalikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 16 04:46:06 PST 2020


denis13 created this revision.
Herald added subscribers: llvm-commits, liufengdb, aartbik, herhut, lucyrfox, mgester, arpith-jacob, csigg, nicolasvasilache, antiagainst, shauheen, burmako, jpienaar, rriddle, mehdi_amini.
Herald added a reviewer: mravishankar.
Herald added a reviewer: antiagainst.
Herald added a project: LLVM.

When lowering `loop.if` to `spv.selection` we explicitly create
a selection header block before the control flow diverges and a
merge block where control flow subsequently converges.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D72836

Files:
  mlir/lib/Conversion/GPUToSPIRV/ConvertGPUToSPIRV.cpp
  mlir/test/Conversion/GPUToSPIRV/if.mlir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72836.238460.patch
Type: text/x-patch
Size: 8020 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200116/1c8c00c5/attachment.bin>


More information about the llvm-commits mailing list