diff options
author | MaheshRavishankar <ravishankarm@google.com> | 2021-01-08 10:52:26 -0800 |
---|---|---|
committer | MaheshRavishankar <ravishankarm@google.com> | 2021-01-08 10:54:46 -0800 |
commit | ec13f6c3e56952c94909a36a590c679a6a57a046 (patch) | |
tree | acd592135dd0509d04730aaf83a1756337cf0c43 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | d9ce31ae7d1fc68de0ea1535fd25ef84e69aeb07 (diff) | |
download | llvm-ec13f6c3e56952c94909a36a590c679a6a57a046.zip llvm-ec13f6c3e56952c94909a36a590c679a6a57a046.tar.gz llvm-ec13f6c3e56952c94909a36a590c679a6a57a046.tar.bz2 |
[mlir][Linalg] Add verification checks to disallow illegal reshape ops.
The existing verification of reshape ops in linalg (linalg.reshape and
linalg.tensor_reshape) allows specification of illegal ops, where
- A dynamic dimension is expanded into multiple dynamic
dimensions. This is ill-specified.
- A static dimension is expanded into dynamic dimension or viceversa,
- The product of extents of the static dimensions in the expanded type
doesnt match the static dimension of the collapsed type.
Making all of these illegal. This also implies that some pessimization
in canonicalization due to incomplete semantics of the operation can
be dropped.
Differential Revision: https://reviews.llvm.org/D93724
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions