[all-commits] [llvm/llvm-project] 45732b: [mlir][Transforms] Fix compile time regression in ...
Matthias Springer via All-commits
all-commits at lists.llvm.org
Mon Feb 26 08:41:10 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 45732b64542e37f4908ced2477a25b7a0d703893
https://github.com/llvm/llvm-project/commit/45732b64542e37f4908ced2477a25b7a0d703893
Author: Matthias Springer <me at m-sp.org>
Date: 2024-02-26 (Mon, 26 Feb 2024)
Changed paths:
M mlir/lib/Transforms/Utils/DialectConversion.cpp
Log Message:
-----------
[mlir][Transforms] Fix compile time regression in dialect conversion (#83023)
The dialect conversion does not directly erase ops that are
replaced/erased with a rewriter. Instead, the op stays in place and is
erased at the end if the dialect conversion succeeds. However, ops that
were replaced/erased are ignored from that point on.
#81757 introduced a compile time regression that made the check whether
an op is ignored or not more expensive. Whether an op is ignored or not
is queried many times throughout a dialect conversion, so the check must
be fast.
After this change, replaced ops are stored in the `ignoredOps` set. This
also simplifies the dialect conversion a bit.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list