[all-commits] [llvm/llvm-project] cb4a5e: [mlir][tosa] Use math.ctlz intrinsic for tosa.clz

Rob Suderman via All-commits all-commits at lists.llvm.org
Mon May 16 12:05:08 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cb4a5eae1eb3fb8be8c0cf73aa9b1e6f9279eda6
      https://github.com/llvm/llvm-project/commit/cb4a5eae1eb3fb8be8c0cf73aa9b1e6f9279eda6
  Author: Robert Suderman <suderman at google.com>
  Date:   2022-05-16 (Mon, 16 May 2022)

  Changed paths:
    M mlir/lib/Conversion/MathToLLVM/MathToLLVM.cpp
    M mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
    M mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir

  Log Message:
  -----------
  [mlir][tosa] Use math.ctlz intrinsic for tosa.clz

We were custom counting per bit for the clz instruction. Math dialect
now has an intrinsic to do this in one instruction. Migrated to this
instruction and fixed a minor bug math-to-llvm for the intrinsic.

Reviewed By: mravishankar

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




More information about the All-commits mailing list