<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On May 11, 2016, at 1:12 PM, Francois Pichet <<a href="mailto:pichet2000@gmail.com" class="">pichet2000@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello,<div class=""><br class=""></div><div class="">Regarding the problem of debug range for optimized code. <div class="">Currently a DEBUG_VALUE will be inserted after the <def>vregX</div><div class="">DEBUG_VALUE are only valid until the end of the current MachineBasicBlock. That's the main problem.</div><div class="">Why not simply iterate over all uses of vregX and insert an DEBUG_VALUE in all the MachineBasicBlocks where vregX is used. (pre regalloc)</div><div class=""><br class=""></div><div class="">I prototyped a small pass to do that and at first it seems to improve .debug_loc range validity and enhance the debugging experience for optimized code.</div></div></div></div></blockquote><div><br class=""></div><div>This thread is almost a year old now :-)</div><div>Have you looked at the LiveDebugValues pass that resulted from this conversation since?</div><div><br class=""></div><div>-- adrian</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class="gmail_extra"><div class="gmail_quote">On Wed, Aug 12, 2015 at 11:11 AM, Vikram TV via llvm-dev <span dir="ltr" class=""><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr" class=""><div style="font-size:16px" class="">Hi all,</div><div style="font-size:16px" class=""><br class=""></div><div style="font-size:16px" class="">An early implementation of extending debug ranges and providing multiple location support is done here: <a href="http://reviews.llvm.org/D11933" target="_blank" class="">http://reviews.llvm.org/D11933</a></div><div style="font-size:16px" class=""><br class=""></div><div style="font-size:16px" class="">Design document: <a href="https://docs.google.com/document/d/1noDVWTvTWBdYdweICPBwvwyt8QvX4KHl7j3XKNSg1nE/edit?usp=sharing" target="_blank" class="">https://docs.google.com/document/d/1noDVWTvTWBdYdweICPBwvwyt8QvX4KHl7j3XKNSg1nE/edit?usp=sharing</a></div><div style="font-size:16px" class=""><br class=""></div><div style="font-size:16px" class=""><div style="min-height:100%" class=""><div style="width:1163.64px" class=""><div class=""><div class=""><div class=""><div style="width:949.633px" class=""><div class=""><div class=""><div class=""><div class=""><div style="min-height:498px" class=""><div style="min-height:63.3806px" class=""><div class=""><div class=""><div class=""><br class=""></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></blockquote></div></div></div></div></div>
</div></blockquote></div><br class=""></body></html>