<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:atrick@apple.com" title="Andrew Trick <atrick@apple.com>"> <span class="fn">Andrew Trick</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Assertion `!ValuesPerBlock[0].isUndefValue() && "Dead BB dominate this block"' failed."
   href="http://llvm.org/bugs/show_bug.cgi?id=17852">bug 17852</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>REOPENED
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Assertion `!ValuesPerBlock[0].isUndefValue() && "Dead BB dominate this block"' failed."
   href="http://llvm.org/bugs/show_bug.cgi?id=17852#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Assertion `!ValuesPerBlock[0].isUndefValue() && "Dead BB dominate this block"' failed."
   href="http://llvm.org/bugs/show_bug.cgi?id=17852">bug 17852</a>
              from <span class="vcard"><a class="email" href="mailto:atrick@apple.com" title="Andrew Trick <atrick@apple.com>"> <span class="fn">Andrew Trick</span></a>
</span></b>
        <pre>Author: shuxin_yang
Date: Mon Nov 11 16:00:23 2013
New Revision: 194424

URL: <a href="http://llvm.org/viewvc/llvm-project?rev=194424&view=rev">http://llvm.org/viewvc/llvm-project?rev=194424&view=rev</a>
Log:
 Fix PR17952.

The symptom is that an assertion is triggered. The assertion was added by
me to detect the situation when value is propagated from dead blocks.
(We can certainly get rid of assertion; it is safe to do so, because
propagating
value from dead block to alive join node is certainly ok.)

 The root cause of this bug is : edge-splitting is conducted on the fly,
the edge being split could be a dead edge, therefore the block that 
split the critial edge needs to be flagged "dead" as well.

 There are 3 ways to fix this bug:
 1) Get rid of the assertion as I mentioned eariler 
 2) When an dead edge is split, flag the inserted block "dead".
 3) proactively split the critical edges connecting dead and live blocks when
    new dead blocks are revealed.

 This fix go for 3) with additional 2 LOC.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>