This commit adds support for broadcast dimensions in permutation maps of vector transfer ops.
Also fixes a bug in VectorToSCF that generated incorrect in-bounds checks for broadcast dimensions.
Depends On D101013
Paths
| Differential D101019
[mlir] Support broadcast dimensions in ProgressiveVectorToSCF ClosedPublic Authored by springerm on Apr 21 2021, 10:07 PM.
Details Summary This commit adds support for broadcast dimensions in permutation maps of vector transfer ops. Also fixes a bug in VectorToSCF that generated incorrect in-bounds checks for broadcast dimensions. Depends On D101013
Diff Detail
Event TimelineComment Actions Looks good, approval conditioned on -1 -> Optional, thanks!
This revision is now accepted and ready to land.Apr 22 2021, 11:50 PM This revision was landed with ongoing or failed builds.Apr 23 2021, 2:02 AM Closed by commit rGa819e7339315: [mlir] Support broadcast dimensions in ProgressiveVectorToSCF (authored by springerm). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 339947 mlir/lib/Conversion/VectorToSCF/ProgressiveVectorToSCF.cpp
mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
mlir/test/Integration/Dialect/Vector/CPU/test-transfer-read-1d.mlir
mlir/test/Integration/Dialect/Vector/CPU/test-transfer-read-2d.mlir
mlir/test/Integration/Dialect/Vector/CPU/test-transfer-read-3d.mlir
|
Can we use Optional<unsigned> ?
I have a deep aversion for magic constants as we have quite some tech debt related to those remaining deep in the code.