[llvm] Fix llvm bdce debug salvage (PR #220900)
Jeremy Morse via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 16 02:39:17 PDT 2026
https://github.com/jmorse approved this pull request.
LGTM, but I'd suggest putting a comment before the changed lines of code along the lines of "leave debug-info users pointing at the old instruction" to make it clear what the intention is. `replaceNonMetadataUsesWith` is quite rare in LLVM, and readers might not realise the connection with debug-info.
Thanks also for the good test coverage!
https://github.com/llvm/llvm-project/pull/220900
More information about the llvm-commits
mailing list