Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MLIR] Remove TableGen redundant calls to native calls when creating …
…new operations in DRR TableGen files Summary: Currently, the TableGen rewrite generates redundant native calls in MLIR DRR files. This is a problem as some native calls may involve significant computations (e.g. when performing constant propagation where every values in a large tensor is touched). The pattern was as follow: ```c++ if (native-call(args)) tblgen_attrs.emplace_back(rewriter, attribute, native-call(args)) ``` The replacement pattern compute `native-call(args)` once and then use it both in the `if` condition and the `emplace_back` call. Differential Revision: https://reviews.llvm.org/D82101
- Loading branch information
1 parent
f633b07
commit 0164119
Showing
4 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters