[llvm] [InstrRef] Skip clobbered EntryValue register recovery (PR #142478)

Shubham Sandeep Rastogi via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 4 16:44:56 PDT 2025


rastogishubham wrote:

@jmorse Thanks for the feedback and the detailed explanation.

You are correct, if we move the clobber to line 73 as you mentioned, we do see two DBG_VALUEs. I think filtering becomes complicated. Now, we could just leave it as-is, but I don't like that either. So I went a different direction. If we just treat an entry_value as a constant, something like a `DBG_VALUE 1, $noreg, !1, debug-location !2` then it will be propagated without an issue.

What do you think?

https://github.com/llvm/llvm-project/pull/142478


More information about the llvm-commits mailing list