llvm-project/mlir
Uday Bondhugula 0ddd04391d [MLIR] Fix op folding to not run pre-replace when not constant folding
OperationFolder::tryToFold was running the pre-replacement
action even when there was no constant folding, i.e., when the operation
was just being updated in place but was not going to be replaced. This
led to nested ops being unnecessarily removed from the worklist and only
being processed in the next outer iteration of the greedy pattern
rewriter, which is also why this didn't affect the final output IR but
only the convergence rate. It also led to an op's results' users to be
unnecessarily added to the worklist.

Signed-off-by: Uday Bondhugula <uday@polymagelabs.com>

Differential Revision: https://reviews.llvm.org/D76268
2020-03-20 07:49:49 +05:30
..
cmake/modules [MLIR] Fix for out-of-tree builds from install area. 2020-03-19 18:43:19 -07:00
docs [mlir] NFC: Fix trivial typos in documents 2020-03-18 22:20:17 +09:00
examples [mlir] Add support for detecting single use callables in the Inliner. 2020-03-18 13:10:41 -07:00
include Add Builder::get{I32,I64}TensorAttr. 2020-03-19 11:37:59 -07:00
lib [MLIR] Fix op folding to not run pre-replace when not constant folding 2020-03-20 07:49:49 +05:30
test [MLIR] Add test for multiple gpu.all_reduce in the same kernel when lowering to NVVM 2020-03-19 16:36:38 +01:00
tools [mlir] Update DRR patterns to notify the rewriter why a pattern fails to match. 2020-03-17 20:22:00 -07:00
unittests [mlir][NFC] Rename QuantOps to Quant 2020-03-17 15:16:47 -07:00
utils [mlir][spirv] Support implied extensions and capabilities 2020-01-17 08:01:57 -05:00
.clang-format [mlir] add .clang-format 2019-03-29 12:41:43 -07:00
.clang-tidy Fix MLIR clang-tidy: when tweaking it does not inherit from the parent 2020-03-07 17:44:21 +00:00
CMakeLists.txt [mlir] Fix cross compiling MLIR 2020-03-14 19:18:40 +00:00
LICENSE.TXT Add the Apache2 with LLVM exceptions license to MLIR 2019-12-24 00:58:06 -08:00
README.md mlir README.md: Fix the syntax 2019-12-24 13:31:07 +01:00

README.md

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.