<div dir="ltr"><div class="gmail_extra">On Wed, Jun 26, 2013 at 4:50 PM, Nadav Rotem <span dir="ltr"><<a href="mailto:nrotem@apple.com" target="_blank" class="cremed">nrotem@apple.com</a>></span> wrote:<br><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We have dead code.   But DCE runs right after the SLP. </blockquote></div><br>It may not be worth it, but I found in SROA it was much more efficient to keep a local vector of dead instructions that I manually went and deleted at the end of the pass. That way you don't have iterator invalidation concerns, but you also don't re-do the work to prove them dead.</div>
</div>