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.
Depends On D83943
Paths
| Differential D83944
[MLIR] Lower `shape.reduce` to `scf.for` only when argument is `tensor<?xindex>` ClosedPublic Authored by frgossen on Jul 16 2020, 5:41 AM.
Details Summary To make it clear when shape error values cannot occur the shape operations can Depends On D83943
Diff Detail
Event TimelineComment Actions Thanks for cleaning this up!
This revision is now accepted and ready to land.Jul 16 2020, 6:13 AM Closed by commit rG67391a704548: [MLIR] Lower `shape.reduce` to `scf.for` only when argument is `tensor<?xindex>` (authored by frgossen). · Explain WhyJul 16 2020, 6:56 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 278459 mlir/lib/Conversion/ShapeToSCF/ShapeToSCF.cpp
mlir/test/Conversion/ShapeToSCF/shape-to-scf.mlir
|
Can we keep this as partial conversion? Otherwise the pass cannot be applied to inputs that contain other dialects, which sometimes is nice to do.