[PATCH] D159212: [MLIR] Allow dialects to disable CSE for certain operations
Sergio Afonso via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 30 08:41:19 PDT 2023
skatrak created this revision.
skatrak added reviewers: ftynse, kiranchandramohan, jsjodin, domada, agozillon, raghavendhra, TIFitis, shraiysh.
Herald added subscribers: bviyer, Moerafaat, zero9178, bzcheeseman, sdasgup3, wenzhicui, wrengr, cota, teijeong, rdzhabarov, tatianashp, msifontes, jurahul, Kayjukh, grosul1, Joonsoo, liufengdb, aartbik, mgester, arpith-jacob, antiagainst, shauheen, rriddle, mehdi_amini.
Herald added a project: All.
skatrak requested review of this revision.
Herald added a reviewer: nicolasvasilache.
Herald added subscribers: cfe-commits, stephenneuendorffer, nicolasvasilache.
Herald added projects: clang, MLIR.
This patch adds the `DialectCSEInterface`, which dialects can implement and register to prevent the common sub-expression elimination (CSE) pass from modifying regions of certain operations.
The result is that these operations would be treated by CSE as if they were `IsolatedFromAbove`, but without the restrictions that come with that trait.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D159212
Files:
clang/docs/tools/clang-formatted-files.txt
mlir/include/mlir/Interfaces/CSEInterfaces.h
mlir/lib/Transforms/CSE.cpp
mlir/test/Transforms/cse.mlir
mlir/test/lib/Dialect/Test/TestDialectInterfaces.cpp
mlir/test/lib/Dialect/Test/TestOps.td
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159212.554740.patch
Type: text/x-patch
Size: 6953 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230830/c29b0cbe/attachment.bin>
More information about the cfe-commits
mailing list