[all-commits] [llvm/llvm-project] 9cfd8d: [mlir][Vector] Avoid infinite loop in InnerOuterDi...

MaheshRavishankar via All-commits all-commits at lists.llvm.org
Thu Dec 9 09:30:23 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9cfd8d7c6ca46c6ba51142ec21fd6543afcba08a
      https://github.com/llvm/llvm-project/commit/9cfd8d7c6ca46c6ba51142ec21fd6543afcba08a
  Author: MaheshRavishankar <ravishankarm at google.com>
  Date:   2021-12-09 (Thu, 09 Dec 2021)

  Changed paths:
    M mlir/lib/Dialect/Vector/VectorMultiDimReductionTransforms.cpp
    M mlir/test/Dialect/Vector/vector-multi-reduction-outer-lowering.mlir

  Log Message:
  -----------
  [mlir][Vector] Avoid infinite loop in InnerOuterDimReductionConversion.

This patterns tries to convert an inner (outer) dim reduction to an
outer (inner) dim reduction. Doing this on a 1D or 0D vector results
in an infinite loop since the converted op is same as the original
operation. Just returning failure when source rank <= 1 fixes the
issue.

Differential Revision: https://reviews.llvm.org/D115426




More information about the All-commits mailing list