[all-commits] [llvm/llvm-project] 37a867: [vector] When trimming leading insertion dimension...

Benjamin Kramer via All-commits all-commits at lists.llvm.org
Tue Apr 18 09:50:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 37a867a5a88871f937256d6cf1248eddabd8925e
      https://github.com/llvm/llvm-project/commit/37a867a5a88871f937256d6cf1248eddabd8925e
  Author: Benjamin Kramer <benny.kra at googlemail.com>
  Date:   2023-04-18 (Tue, 18 Apr 2023)

  Changed paths:
    M mlir/lib/Dialect/Vector/Transforms/VectorDropLeadUnitDim.cpp
    M mlir/test/Dialect/Vector/vector-dropleadunitdim-transforms.mlir

  Log Message:
  -----------
  [vector] When trimming leading insertion dimensions, base the final result on the ranks

This was incorrect when the number of dropped source dims was smaller
than the number of dropped dst dims. We still need to insert zeros if
there is anything dropped from the src.

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




More information about the All-commits mailing list