[mlir][affine] Prevent vectorizer test from crash without any map
authorKai Sasaki <lewuathe@gmail.com>
Thu, 23 Mar 2023 00:59:29 +0000 (09:59 +0900)
committerKai Sasaki <lewuathe@gmail.com>
Thu, 23 Mar 2023 01:08:53 +0000 (10:08 +0900)
commit3d7383d7f44a4b9760f6566e62950968e90e0a1c
tree7890ac28ba508f1c2e506ba42c7fc697fe6391ef
parentae63b1a5767b89fe5af140365f9e3ccf74feb1f0
[mlir][affine] Prevent vectorizer test from crash without any map

If the vectorizer test pass does not get any affine map, it should output nothing instead of crash.

Issue: https://github.com/llvm/llvm-project/issues/61534

Reviewed By: nicolasvasilache, dcaballe

Differential Revision: https://reviews.llvm.org/D146601
mlir/test/Dialect/Affine/SuperVectorize/compose_maps.mlir
mlir/test/lib/Dialect/Affine/TestVectorizationUtils.cpp