[all-commits] [llvm/llvm-project] f2b89c: [mlir][Vector] Use create_mask in transfer mask ma...

jsetoain via All-commits all-commits at lists.llvm.org
Tue Mar 8 01:09:47 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f2b89c7ae083d8c99f9efc7cb90f5d3b63048e89
      https://github.com/llvm/llvm-project/commit/f2b89c7ae083d8c99f9efc7cb90f5d3b63048e89
  Author: Javier Setoain <javier.setoain at gmail.com>
  Date:   2022-03-08 (Tue, 08 Mar 2022)

  Changed paths:
    M mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
    M mlir/test/Conversion/VectorToLLVM/vector-mask-to-llvm.mlir
    M mlir/test/Conversion/VectorToLLVM/vector-to-llvm.mlir

  Log Message:
  -----------
  [mlir][Vector] Use create_mask in transfer mask materializations

Currently, the transfer mask is materialized by generating the vector
comparison: [offset + 0, .., offset + length - 1] < [dim, .., dim]

A better alternative is to materialize the transfer mask by using the
operation: `vector.create_mask (dim - offset)`, which will generate
simpler code and compose better with scalable vectors.

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




More information about the All-commits mailing list