[mlir][Linalg] Allow folding to rank-zero tensor when using rank-reducing subtensors. (details)
[CGAtomic] Lift strong requirement for remaining compare_exchange combinations (details)
Commit
05a89312d812bb5dcec6deca8f1e28a198ce1167
by ravishankarm
[mlir][Linalg] Allow folding to rank-zero tensor when using rank-reducing subtensors.
The pattern to convert subtensor ops to their rank-reduced versions (by dropping unit-dims in the result) can also convert to a zero-rank tensor. Handle that case. This also fixes a OOB access bug in the existing pattern for such cases.