[all-commits] [llvm/llvm-project] bdcf4b: [MLIR][Linalg] Make detensoring cost-model more fl...

Kareem Ergawy via All-commits all-commits at lists.llvm.org
Mon Sep 20 01:21:46 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bdcf4b9b9620afe24d17132027a7d12e2f1a598b
      https://github.com/llvm/llvm-project/commit/bdcf4b9b9620afe24d17132027a7d12e2f1a598b
  Author: KareemErgawy-TomTom <kareem.ergawy at gmail.com>
  Date:   2021-09-20 (Mon, 20 Sep 2021)

  Changed paths:
    M mlir/lib/Dialect/Linalg/Transforms/Detensorize.cpp
    R mlir/test/Dialect/Linalg/detensorize_while_failure.mlir
    A mlir/test/Dialect/Linalg/detensorize_while_impure_cf.mlir

  Log Message:
  -----------
  [MLIR][Linalg] Make detensoring cost-model more flexible.

So far, the CF cost-model for detensoring was limited to discovering
pure CF structures. This means, if while discovering the CF component,
the cost-model found any op that is not detensorable, it gives up on
detensoring altogether. This patch makes it a bit more flexible by
cleaning-up the detensorable component from non-detensorable ops without
giving up entirely.

Reviewed By: silvas

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




More information about the All-commits mailing list