aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/CodeGen/MachineBasicBlockTest.cpp
diff options
context:
space:
mode:
authorMatthias Springer <me@m-sp.org>2024-09-21 10:02:17 +0200
committerGitHub <noreply@github.com>2024-09-21 10:02:17 +0200
commit8527861179ac7771bae09e2fcb0eece4b589d747 (patch)
tree87b07820ad865b37b804e4e3209b50bca4f1d3c7 /llvm/unittests/CodeGen/MachineBasicBlockTest.cpp
parentc57b9f5a138d9a7ce0744e4fdb85ff31dc5f2cac (diff)
downloadllvm-8527861179ac7771bae09e2fcb0eece4b589d747.zip
llvm-8527861179ac7771bae09e2fcb0eece4b589d747.tar.gz
llvm-8527861179ac7771bae09e2fcb0eece4b589d747.tar.bz2
[mlir][Transforms] Dialect conversion: Unify materialization of value replacements (#108381)
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` iterated over `ConversionPatternRewriterImpl::rewrites` twice. Now, only one iteration is needed. --------- Co-authored-by: Jakub Kuderski <jakub@nod-labs.com>
Diffstat (limited to 'llvm/unittests/CodeGen/MachineBasicBlockTest.cpp')
0 files changed, 0 insertions, 0 deletions