[mlir][Vector] Further fix to avoid infinite loop in InnerOuterDimReductionConversion
authorHanhan Wang <hanchung@google.com>
Wed, 15 Dec 2021 21:53:47 +0000 (13:53 -0800)
committerHanhan Wang <hanchung@google.com>
Wed, 15 Dec 2021 21:54:15 +0000 (13:54 -0800)
commit501674dc3b14277837d0c279cde5868135e7649c
tree359c8169dc14991fc638237a6c39c177757758a3
parent17cfc57d1437e6b6f83809c0f8a575010bb50f05
[mlir][Vector] Further fix to avoid infinite loop in InnerOuterDimReductionConversion

If all the dims are reduction dims, it is already in inner-most/outer-most
reduction form.

Reviewed By: ThomasRaoux

Differential Revision: https://reviews.llvm.org/D115820
mlir/lib/Dialect/Vector/VectorMultiDimReductionTransforms.cpp
mlir/test/Dialect/Vector/vector-multi-reduction-outer-lowering.mlir