[all-commits] [llvm/llvm-project] ad4933: [MLIR][Shape] Fix `shape_of` lowering to `scf`

frgossen via All-commits all-commits at lists.llvm.org
Wed Jul 15 09:33:24 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ad493300322099787cab5f3a9f7310af0f9b5e6c
      https://github.com/llvm/llvm-project/commit/ad493300322099787cab5f3a9f7310af0f9b5e6c
  Author: Frederik Gossen <frgossen at google.com>
  Date:   2020-07-15 (Wed, 15 Jul 2020)

  Changed paths:
    M mlir/lib/Conversion/ShapeToSCF/ShapeToSCF.cpp

  Log Message:
  -----------
  [MLIR][Shape] Fix `shape_of` lowering to `scf`

The use of the `scf.for` callback builder does not allow for a rollback of the
emitted conversions. Instead, we populate the loop body through the conversion
rewriter directly.

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




More information about the All-commits mailing list