[all-commits] [llvm/llvm-project] cf3582: [mlir][sparse] Moving the sort from factory method...

wren romano via All-commits all-commits at lists.llvm.org
Thu Jan 13 19:45:06 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cf358253887298edf44bc2eec050eb8af0f68594
      https://github.com/llvm/llvm-project/commit/cf358253887298edf44bc2eec050eb8af0f68594
  Author: wren romano <2998727+wrengr at users.noreply.github.com>
  Date:   2022-01-13 (Thu, 13 Jan 2022)

  Changed paths:
    M mlir/lib/ExecutionEngine/SparseTensorUtils.cpp

  Log Message:
  -----------
  [mlir][sparse] Moving the sort from factory method to the constructor.

This guarantees the preconditions of fromCOO; whereas prior to this, one could call the constructor directly with an unsorted tensor, which would cause fromCOO to misbehave.

Reviewed By: aartbik

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




More information about the All-commits mailing list