[all-commits] [llvm/llvm-project] 0fd4cb: [mlir][Transforms] Dialect conversion: Unify mater...
Matthias Springer via All-commits
all-commits at lists.llvm.org
Thu Sep 12 06:36:54 PDT 2024
Branch: refs/heads/users/matthias-springer/bbarg_opresult_mat
Home: https://github.com/llvm/llvm-project
Commit: 0fd4cb81dbf6e9c2766a086e2e3fdffd3cf67510
https://github.com/llvm/llvm-project/commit/0fd4cb81dbf6e9c2766a086e2e3fdffd3cf67510
Author: Matthias Springer <mspringer at nvidia.com>
Date: 2024-09-12 (Thu, 12 Sep 2024)
Changed paths:
M mlir/lib/Transforms/Utils/DialectConversion.cpp
Log Message:
-----------
[mlir][Transforms] Dialect conversion: Unify materialization of value replacements
PR #106760 aligned the handling of dropped block arguments and dropped op results. The two helper functions that insert source materializations for uses of replaced block arguments / op results that survived the conversion are now almost identical (`legalizeConvertedArgumentTypes` and `legalizeConvertedOpResultTypes`). This PR merges the two functions and moves the implementation directly into `finalize`.
This PR simplifies the code base and improves the efficiency a bit: previously, `finalize` iterates over `ConversionPatternRewriterImpl::rewrites` twice. Now, only one iteration is needed.
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