[all-commits] [llvm/llvm-project] d343a3: [mlir][spirv][vector] Enable vector3 when converti...

Lei Zhang via All-commits all-commits at lists.llvm.org
Tue Apr 18 13:59:27 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d343a395431f70f63d66ef31cb69c8c4babdb21f
      https://github.com/llvm/llvm-project/commit/d343a395431f70f63d66ef31cb69c8c4babdb21f
  Author: Lei Zhang <antiagainst at google.com>
  Date:   2023-04-18 (Tue, 18 Apr 2023)

  Changed paths:
    M mlir/lib/Conversion/VectorToSPIRV/VectorToSPIRV.cpp
    M mlir/test/Conversion/VectorToSPIRV/vector-reduction-to-spirv-dot-prod.mlir

  Log Message:
  -----------
  [mlir][spirv][vector] Enable vector3 when converting to dot product

It's common to see such cases for contraction from convolution with
input channel as 3. Although we aren't utilizing all 4 lanes for
dot product, it should still be better than performing the multiply
and reduction separately.

Reviewed By: kuhar

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




More information about the All-commits mailing list