<div dir="ltr"><div><div><div>So I guess I can get it with:<br><br>getDebugLoc().getLine();<br><br></div>Right?<br><br></div>Best,<br></div>Mohammad<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 3, 2016 at 6:30 PM, Robinson, Paul <span dir="ltr"><<a href="mailto:Paul_Robinson@playstation.sony.com" target="_blank">Paul_Robinson@playstation.sony.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">> > On Mar 3, 2016, at 8:40 AM, Mohammad Norouzi via llvm-dev <llvm-<br>
> <a href="mailto:dev@lists.llvm.org">dev@lists.llvm.org</a>> wrote:<br>
> ><br>
> > Is it possible to get debug information after optimization? for example,<br>
> source code line numbers of instructions in an ir that is optimized by O2?<br>
><br>
> Absolutely. In textual IR, have a look at the !dbg annotations on the<br>
> instructions. Let me know if you have any more specific questions.<br>
><br>
> -- adrian<br>
<br>
</div></div>And if you find cases where debug info doesn't survive optimization very<br>
well, but you think it could do better, it's definitely worth reporting<br>
those cases.  We can't necessarily make it better, but it's always worth<br>
a look.<br>
--paulr<br>
<br>
</blockquote></div><br></div>