[mlir][Vector] Use llvm::zip to avoid assertion failed.
authorjacquesguan <Jianjian.Guan@streamcomputing.com>
Mon, 12 Dec 2022 08:58:04 +0000 (16:58 +0800)
committerjacquesguan <Jianjian.Guan@streamcomputing.com>
Wed, 14 Dec 2022 02:26:54 +0000 (10:26 +0800)
commit0017dc2d0ff89bd9fb93fd25ba787ba66a4de356
tree1e26840aaaaee59426e7fa4236d769a957b7866b
parentafb2ed80cb1639236a3aa15f2c9ff96dbb45c3d0
[mlir][Vector] Use llvm::zip to avoid assertion failed.

This patch fixes the issue https://github.com/llvm/llvm-project/issues/59455.
We could omit the un-changed dimensions in offsets and sizes, so llvm::zip_equal would fail in this case.

Reviewed By: Mogball

Differential Revision: https://reviews.llvm.org/D139815
mlir/lib/Dialect/Vector/IR/VectorOps.cpp
mlir/test/Dialect/Vector/canonicalize.mlir