[all-commits] [llvm/llvm-project] c3c73e: [mlir][openacc] Add canonicalization pattern for a...
Valentin Clement (バレンタイン クレメン) via All-commits
all-commits at lists.llvm.org
Fri May 12 16:58:26 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c3c73e5d40dc4e7815bd9465723f0c8e3bdb3d5e
https://github.com/llvm/llvm-project/commit/c3c73e5d40dc4e7815bd9465723f0c8e3bdb3d5e
Author: Valentin Clement <clementval at gmail.com>
Date: 2023-05-12 (Fri, 12 May 2023)
Changed paths:
M mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
M mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
M mlir/test/Dialect/OpenACC/canonicalize.mlir
Log Message:
-----------
[mlir][openacc] Add canonicalization pattern for acc.host_data
Add if condition removal pattern for acc.host_data in a same way as
acc.enter_data, acc.exit_data and acc.update.
The condition is removed from the op if it is a true constant. If
it is a false constant then the region is inlined before the op
and the op is removed.
Reviewed By: vzakhari
Differential Revision: https://reviews.llvm.org/D150480
More information about the All-commits
mailing list