[all-commits] [llvm/llvm-project] c8fc76: [mlir] [VectorOps] fixed bug in vector.insert_stri...

Aart Bik via All-commits all-commits at lists.llvm.org
Fri Jan 31 11:30:14 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c8fc76a99b308973b68766a81e68277b57ee1864
      https://github.com/llvm/llvm-project/commit/c8fc76a99b308973b68766a81e68277b57ee1864
  Author: aartbik <ajcbik at google.com>
  Date:   2020-01-31 (Fri, 31 Jan 2020)

  Changed paths:
    M mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
    M mlir/test/Conversion/VectorToLLVM/vector-to-llvm.mlir

  Log Message:
  -----------
  [mlir] [VectorOps] fixed bug in vector.insert_strided_slice lowering

Summary:
Rationale:
When lowering to LLVM for different rank insert (n vs k), the offset
arrays needs to drop one dimension (becomes n-1), but the strides
array needs to be preserved (remains k). With regression test.
Note that this example was actually in the documentation, so
extra important to do it right :-)

Reviewers: nicolasvasilache, andydavis1, ftynse

Reviewed By: nicolasvasilache, ftynse

Subscribers: Joonsoo, merge_guards_bot, mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, arpith-jacob, mgester, lucyrfox, liufengdb, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list