[all-commits] [llvm/llvm-project] 8dd07e: [mlir][sparse] enable integral abs recognition

Aart Bik via All-commits all-commits at lists.llvm.org
Fri Aug 12 11:36:58 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8dd07e36ca0f56bad6ca910b3a0ffe5ed38bc34a
      https://github.com/llvm/llvm-project/commit/8dd07e36ca0f56bad6ca910b3a0ffe5ed38bc34a
  Author: Aart Bik <ajcbik at google.com>
  Date:   2022-08-12 (Fri, 12 Aug 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/SparseTensor/Utils/Merger.h
    M mlir/lib/Dialect/SparseTensor/Utils/Merger.cpp
    A mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_abs.mlir
    M mlir/unittests/Dialect/SparseTensor/MergerTest.cpp

  Log Message:
  -----------
  [mlir][sparse] enable integral abs recognition

The end-to-end test for this new feature also exposed a bug
in LLVM IR lowering (since then, fixed), where we need to account
for the min-poison bit as extra argument.

    declare i32 @llvm.abs.i32(i32 <src>, i1 <is_int_min_poison>)

Reviewed By: bixia

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




More information about the All-commits mailing list