[all-commits] [llvm/llvm-project] 340e1b: [mlir] LoopToStandard conversion: support "if/else...

ftynse via All-commits all-commits at lists.llvm.org
Fri Apr 3 14:49:10 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 340e1b20779ebeb93f681689a345217672a308e3
      https://github.com/llvm/llvm-project/commit/340e1b20779ebeb93f681689a345217672a308e3
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2020-04-03 (Fri, 03 Apr 2020)

  Changed paths:
    M mlir/lib/Conversion/LoopToStandard/LoopToStandard.cpp
    M mlir/test/Conversion/convert-to-cfg.mlir

  Log Message:
  -----------
  [mlir] LoopToStandard conversion: support "if/else" with results

Summary:
A recent extension allowed the `loop.if` operation to return results yielded by
its regions. However, such operations could not be lowered to a CFG of standard
operations because it would have required to modify the argument list of a
block, which is not allowed in a conversion pattern. Now that the conversion
infrastructure supports block creation, use it to create a block with an
argument list that dominates the operations following the `loop.if` and forward
the results as arguments of this block.

Depends On D77416

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




More information about the All-commits mailing list