[all-commits] [llvm/llvm-project] 4a876b: Add case to handle 0-D vectors in FlattenContiguou...

harsh-nod via All-commits all-commits at lists.llvm.org
Tue Feb 8 12:00:51 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4a876b13fbba8ad9ad7375bd1fe22c7d71c4ad05
      https://github.com/llvm/llvm-project/commit/4a876b13fbba8ad9ad7375bd1fe22c7d71c4ad05
  Author: harsh <harsh at nod-labs.com>
  Date:   2022-02-08 (Tue, 08 Feb 2022)

  Changed paths:
    M mlir/lib/Dialect/Vector/Transforms/VectorTransferOpTransforms.cpp
    M mlir/test/Dialect/Vector/vector-transfer-flatten.mlir

  Log Message:
  -----------
  Add case to handle 0-D vectors in FlattenContiguousRowMajorTransferWritePattern and FlattenContiguousRowMajorTransferReadPattern.

For 0-D as well as 1-D vectors, both these patterns should
return a failure as there is no need to collapse the shape
of the source. Currently, only 1-D vectors were handled. This
patch handles the 0-D case as well.

Reviewed By: Benoit, ThomasRaoux

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




More information about the All-commits mailing list