[all-commits] [llvm/llvm-project] 432341: [mlir] Handle cases where transfer_read should tur...

stephenneuendorffer via All-commits all-commits at lists.llvm.org
Tue Aug 3 23:12:01 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 432341d8a81afb95f12ca8e91fbbb4a4b526856f
      https://github.com/llvm/llvm-project/commit/432341d8a81afb95f12ca8e91fbbb4a4b526856f
  Author: Stephen Neuendorffer <stephen.neuendorffer at xilinx.com>
  Date:   2021-08-03 (Tue, 03 Aug 2021)

  Changed paths:
    M mlir/lib/Dialect/Vector/VectorTransforms.cpp
    M mlir/test/Dialect/Vector/vector-transfer-lowering.mlir

  Log Message:
  -----------
  [mlir] Handle cases where transfer_read should turn into a scalar load

The existing vector transforms reduce the dimension of transfer_read
ops.  However, beyond a certain point, the vector op actually has
to be reduced to a scalar load, since we can't load a zero-dimension
vector.  This handles this case.

Note that in the longer term, it may be preferaby to support
zero-dimension vectors.  see
https://llvm.discourse.group/t/should-we-have-0-d-vectors/3097.

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




More information about the All-commits mailing list