commit | 7201c1c3fd8c69b5470072a86fe3ce5907baa8ff | [log] [tgz] |
---|---|---|
author | Thomas Raoux <thomasraoux@google.com> | Thu Nov 18 16:09:49 2021 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Nov 19 10:31:19 2021 -0800 |
tree | 996daec29e95a00e254016f10c744a9449c869ce | |
parent | a864454c5d55ff9550161809bfbb0d58cd1f63d4 [diff] |
[mlir][vector] Remove usage of shapecast to remove unit dim Instead of using shape_cast op in the pattern removing leading unit dimensions we use extract/broadcast ops. This is part of the effort to restrict ShapeCastOp fuirther in the future and only allow them to convert to or from 1D vector. This also adds extra canonicalization to fill the gaps in simplifying broadcast/extract ops. Differential Revision: https://reviews.llvm.org/D114205 GitOrigin-RevId: 06dbb2856967a5497c6ddfad3d3fdfea20849f7e
See https://mlir.llvm.org/ for more information.