As a canonicalization, infer the resulting shape rank if possible.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D102068
[MLIR][Shape] Concretize broadcast result type if possible ClosedPublic Authored by frgossen on May 7 2021, 6:25 AM.
Details Summary As a canonicalization, infer the resulting shape rank if possible.
Diff Detail
Event Timeline
Closed by commit rGa81e45b8bcb8: [MLIR][Shape] Concretize broadcast result type if possible (authored by frgossen). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 343999 mlir/include/mlir/Dialect/Shape/IR/Shape.h
mlir/lib/Dialect/Shape/IR/Shape.cpp
mlir/test/Dialect/Shape/canonicalize.mlir
|
Isn't this now a canonicalization pattern that can unconditionally change result type? How do you know this is safe?