See comment 3 on PR47946.
InlineLowerDbgDeclare looks for dbg.value+derefs which have been inserted before
call instructions by LowerDbgDeclare. However, without this patch these
intrinsics are eligable for removal by RemoveRedundantDbgInstr.
Differential D91425
[DebugInfo] Skip dbg.value+derefs in RemoveRedundantDbgInstrs forward scan [3/3] Orlando on Nov 13 2020, 7:17 AM. Authored by
Details
Diff Detail Event Timeline
Comment Actions Thank you @bjope for taking a look at this.
Comment Actions
Comment Actions Address feedback from @bjope: |
Not sure I understand exactly how/if this motivates why the dbg.value should be kept. If we first say that the variable is at address X, and then later say that the variable is at address X, the second statement seem redundant to me.