[Assignment Tracking][16/*] Account for assignment tracking in mldst-motion
authorOCHyams <orlando.hyams@sony.com>
Tue, 15 Nov 2022 11:28:20 +0000 (11:28 +0000)
committerOCHyams <orlando.hyams@sony.com>
Tue, 15 Nov 2022 11:28:20 +0000 (11:28 +0000)
commit98c1d11492a61884b63dda7aa8f201443ff0e402
tree67bd22a4b9eedc9915b8acf1c083eb3a7e2b4d36
parent64bd607b40bef3ad0c68ae5c154ccaf1fe616c7e
[Assignment Tracking][16/*] Account for assignment tracking in mldst-motion

The Assignment Tracking debug-info feature is outlined in this RFC:
https://discourse.llvm.org/t/
rfc-assignment-tracking-a-better-way-of-specifying-variable-locations-in-ir

mldst-motion will merge and sink the stores in if-diamond branches into the
common successor. Attach a merged DIAssignID to the merged store.

Reviewed By: jmorse

Differential Revision: https://reviews.llvm.org/D133311
llvm/lib/Transforms/Scalar/MergedLoadStoreMotion.cpp
llvm/test/DebugInfo/Generic/assignment-tracking/mldst-motion/diamond.ll [new file with mode: 0644]