<div dir="ltr"><br><br><br>On Tue, Apr 22, 2014 at 9:24 PM, Hal Finkel <<a href="mailto:hfinkel@anl.gov">hfinkel@anl.gov</a>> wrote:<br><br>> Thinking about it, it is probably pretty rare that no other pass splits the preheader. Nevertheless, I'd prefer to be smart about it if practical. Is there <div>
> some way we can choose the "last" debug location?<br><br>Sure. I've changed it to anchor on the terminating instruction of the preheader or header (whichever gets a debug loc). I suspect that we will not always get a clean spot. This depends a lot on how much optimizations manage to preserve !dbg metadata. But we can tackle those oddities as we find them.</div>
<div><br></div><div>> I like this better.<br></div><div><br></div><div>OK. Fixed.</div><div><br></div><div><br></div><div>Thanks. Diego.</div></div>