[all-commits] [llvm/llvm-project] 22e455: [mlir][Transforms] Dialect conversion: Unify mater...
Matthias Springer via All-commits
all-commits at lists.llvm.org
Fri Sep 13 11:18:10 PDT 2024
Branch: refs/heads/users/matthias-springer/bbarg_opresult_mat
Home: https://github.com/llvm/llvm-project
Commit: 22e4550dd31def42c0df51db1cd305eb8e9f2516
https://github.com/llvm/llvm-project/commit/22e4550dd31def42c0df51db1cd305eb8e9f2516
Author: Matthias Springer <mspringer at nvidia.com>
Date: 2024-09-13 (Fri, 13 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