[all-commits] [llvm/llvm-project] 67391a: [MLIR] Lower `shape.reduce` to `scf.for` only when...

frgossen via All-commits all-commits at lists.llvm.org
Thu Jul 16 06:56:22 PDT 2020


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

  Changed paths:
    M mlir/lib/Conversion/ShapeToSCF/ShapeToSCF.cpp
    M mlir/test/Conversion/ShapeToSCF/shape-to-scf.mlir

  Log Message:
  -----------
  [MLIR] Lower `shape.reduce` to `scf.for` only when argument is `tensor<?xindex>`

To make it clear when shape error values cannot occur the shape operations can
operate on extent tensors. This change updates the lowering for `shape.reduce`
accordingly.

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




More information about the All-commits mailing list