Antonio Frighetto e7db3f1d3d
[DSE] Handle provenance when eliminating tautological assignments
Similarly to what already being done in GVN (fb632ed2377d280b581b8d4653b855e60d611f77),
when a dominating equality condition of two pointers holds, and the
value being stored is implied by such a condition, ensure the store
may be removed by leveraging `canReplacePointersIfEqual`, subject to
the known approximations.

Fixes: https://github.com/llvm/llvm-project/issues/184088.
2026-03-04 10:35:52 +01:00
..