[all-commits] [llvm/llvm-project] 6ea22d: Optionally eliminate blocking runtime.await calls ...

Eugene Zhulenev via All-commits all-commits at lists.llvm.org
Wed Jul 28 12:37:21 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6ea22d46261443c6d086d660508067db50de68ad
      https://github.com/llvm/llvm-project/commit/6ea22d46261443c6d086d660508067db50de68ad
  Author: bakhtiyar <bakhtiyar at x.team>
  Date:   2021-07-28 (Wed, 28 Jul 2021)

  Changed paths:
    M mlir/include/mlir/Dialect/Async/Passes.td
    M mlir/lib/Dialect/Async/Transforms/AsyncToAsyncRuntime.cpp
    A mlir/test/Dialect/Async/async-to-async-runtime-eliminate-blocking.mlir

  Log Message:
  -----------
  Optionally eliminate blocking runtime.await calls by converting functions to coroutines.

Interop parallelism requires needs awaiting on results. Blocking awaits are bad for performance. TFRT supports lightweight resumption on threads, and coroutines are an abstraction than can be used to lower the kernels onto TFRT threads.

Reviewed By: ezhulenev

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




More information about the All-commits mailing list