<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jun 8, 2012, at 2:55 PM, John Criswell wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
  
    <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
  
  <div bgcolor="#FFFFFF" text="#000000">
    On 6/8/12 12:47 PM, Peter Cooper wrote:
    <blockquote cite="mid:D52A864A-B637-4523-97C8-2EDD8CDC0132@apple.com" type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div class="BodyFragment"><font size="2"><span style="font-size:
            10pt;">
            <div class="PlainText">Hi all<br>
              <br>
              Attached is a pass to make the SimplifyCFGPass preserve
              the dominator tree.  Currently we see lots of
              recalculations of the dom tree right after simplify cfg
              runs, regardless of whether simplify cfg actually did
              anything.<br>
            </div>
          </span></font></div>
    </blockquote>
    <br>
    Does SimplifyCFGPass return false from its run method when it
    doesn't change anything?  If so, does the PassManager just
    invalidate DomTree anyway because SimplifyCFGPass does not claim to
    preserve it?<br></div></blockquote>It does return false in this case, yeah, but the pass manager actually invalidates it anyway.  I don't think it trusts the return value because some passes (like simplify lib calls) actually return false even if they did something.</div><div><br></div><div>Pete<br><blockquote type="cite"><div bgcolor="#FFFFFF" text="#000000">
    <br>
    -- John T.<br>
    <br>
    <blockquote cite="mid:D52A864A-B637-4523-97C8-2EDD8CDC0132@apple.com" type="cite">
      <div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
            <div class="PlainText">
              <br>
              Thanks,<br>
              Pete<br>
            </div>
          </span></font></div>
      <div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
            <div class="PlainText">_______________________________________________<br>
              llvm-commits mailing list<br>
              <a class="moz-txt-link-abbreviated" href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
              <a moz-do-not-send="true" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
            </div>
          </span></font></div>
    </blockquote>
    <br>
  </div>

</blockquote></div><br></body></html>