diff options
author | Thomas Raoux <thomasraoux@google.com> | 2021-11-30 22:51:12 -0800 |
---|---|---|
committer | MaheshRavishankar <ravishankarm@google.com> | 2021-11-30 22:51:56 -0800 |
commit | 69a8a7cf2dc4f8e1213f294697f649850af06f1d (patch) | |
tree | 208c47199b4a6a677c15e361695eb76c2627f206 /llvm/lib/Transforms/Scalar/LoopPassManager.cpp | |
parent | 9a844c2a9b5c09b4c35d573394a99ab860621581 (diff) | |
download | llvm-69a8a7cf2dc4f8e1213f294697f649850af06f1d.zip llvm-69a8a7cf2dc4f8e1213f294697f649850af06f1d.tar.gz llvm-69a8a7cf2dc4f8e1213f294697f649850af06f1d.tar.bz2 |
[mlir] Make sure linearizeCollapsedDims doesn't drop input map dims
The new affine map generated by linearizeCollapsedDims should not drop
dimensions. We need to make sure we create a map with at least as many
dimensions as the source map. This prevents
FoldProducerReshapeOpByLinearization from generating invalid IR.
This solves regression in IREE due to https://github.com/llvm/llvm-project/commit/e4e4da86aff5606ef792d987a3ec85639219228c
Reviewed By: mravishankar
Differential Revision: https://reviews.llvm.org/D114838
This reverts commit 9a844c2a9b5c09b4c35d573394a99ab860621581.
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopPassManager.cpp')
0 files changed, 0 insertions, 0 deletions