<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Jun 26, 2013, at 4:55 PM, Chandler Carruth <<a href="mailto:chandlerc@google.com">chandlerc@google.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;">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.</span></blockquote></div><br><div>That’s what I do with the code that does local CSE. I will probably go back and add the vector of deleted instructions for this as well.  </div></body></html>