[Local] Use combineMetadataForCSE() in patchReplacementInstruction()
authorNikita Popov <npopov@redhat.com>
Mon, 3 Apr 2023 13:30:21 +0000 (15:30 +0200)
committerNikita Popov <npopov@redhat.com>
Mon, 3 Apr 2023 13:30:21 +0000 (15:30 +0200)
commite20331cec0a21c4798569ee347de3a697621c9c5
tree2fa5447bb72c8e2209d77bb955501bbf5702b587
parent0b5068695aabdca40eddb686be80ef4ad6abf38e
[Local] Use combineMetadataForCSE() in patchReplacementInstruction()

patchReplacementInstruction() is used for CSE-style transforms.
Avoid the need to maintain two separate lists of known metadata IDs,
which can and do go out of sync.
llvm/lib/Transforms/Utils/Local.cpp