[all-commits] [llvm/llvm-project] 5abf11: [mlir][vector] Allow values outside of [0; dim-siz...

Sergei Grechanik via All-commits all-commits at lists.llvm.org
Thu Jan 20 10:00:38 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5abf1163224549902bf34c9d07b822e5283beb7a
      https://github.com/llvm/llvm-project/commit/5abf1163224549902bf34c9d07b822e5283beb7a
  Author: Sergei Grechanik <sergei.grechanik at intel.com>
  Date:   2022-01-20 (Thu, 20 Jan 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/Vector/VectorOps.td
    M mlir/lib/Dialect/Vector/VectorOps.cpp
    M mlir/test/Dialect/Vector/canonicalize.mlir
    M mlir/test/Integration/Dialect/Vector/CPU/test-create-mask.mlir

  Log Message:
  -----------
  [mlir][vector] Allow values outside of [0; dim-size] in create_mask

This commits explicitly states that negative values and values exceeding
vector dimensions are allowed in vector.create_mask (but not in
vector.constant_mask). These values are now truncated when
canonicalizing vector.create_mask to vector.constant_mask.

Reviewed By: aartbik

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




More information about the All-commits mailing list