<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Sep 19, 2017 at 8:40 AM, Adrian Prantl via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">> Later loop unroll comes and unrolls the loop and then suddenly we have two absolutely identical dbg.declares and the assert in addFragmentOffset() blows. Who's at fault?<br>
<br>
</span>Without having read the code yet, my intuition says that the unroller should not be duplicating dbg.declares, only dbg.values.<br></blockquote><div><br></div><div>I think it's a bug in both places: the backend should tolerate identical, duplicate dbg.declares, and the loop unroller probably shouldn't duplicate dbg.declare, since there is no point.</div><div><br></div><div>IR is supposed to be duplicatable unless it is marked noduplicate. That was ultimately the fix we applied for PR33157, right?</div></div></div></div>