[all-commits] [llvm/llvm-project] 392d55: [MLIR][GPU] Add canonicalization patterns for fold...

Arnab Dutta via All-commits all-commits at lists.llvm.org
Thu Apr 14 00:02:30 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 392d55c1e2d777e9843864e1022d476599334dc9
      https://github.com/llvm/llvm-project/commit/392d55c1e2d777e9843864e1022d476599334dc9
  Author: Arnab Dutta <arnab at polymagelabs.com>
  Date:   2022-04-14 (Thu, 14 Apr 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/GPU/GPUOps.td
    M mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
    M mlir/test/Dialect/GPU/canonicalize.mlir

  Log Message:
  -----------
  [MLIR][GPU] Add canonicalization patterns for folding simple gpu.wait ops.

* Fold away redundant %t = gpu.wait async + gpu.wait [%t] pairs.

* Fold away %t = gpu.wait async ... ops when %t has no uses.

* Fold away gpu.wait [] ops.

* In case of %t1 = gpu.wait async [%t0], replace all uses of %t1
  with %t0.

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




More information about the All-commits mailing list