<div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Dan, Yury, llvm-dev,<div><br></div><div>The WebAssembly backend has recently started using MachineInstr::collectDebugValues in r351216 [0] for debuginfo manipulation. FYI, there are some debuginfo changes coming that *might* invalidate your use of collectDebugValues, so I thought I'd let you know.</div><div><br></div><div>LLVM currently places DBG_VALUE machine pseudo-instructions immediately after the instruction that defines the DBG_VALUEs operand. collectDebugValues relies on this behaviour: it only collects DBG_VALUEs that immediately follow the defining instruction. However, sometime soon LLVM will instead place DBG_VALUE instructions where variable assignments in the source program occurred (ish)  [1], removing the behaviour collectDebugValues relies on.</div><div><br></div><div>I have zero knowledge of WebAssembly, so my question is "Does the target code rely on this behaviour?". No WebAssembly tests fail when the behaviour changes, but I figured I'd ask anyway.</div><div><br></div><div>[0] <a href="https://reviews.llvm.org/rL351216" target="_blank">https://reviews.llvm.org/rL351216</a></div><div>[1] <a href="https://reviews.llvm.org/D58453" target="_blank">https://reviews.llvm.org/D58453</a></div><div><br></div><div>--</div><div>Thanks,</div><div>Jeremy</div><div><br></div></div></div></div>