<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - opt -O3 crashes with debug-only=loop-unroll"
   href="https://llvm.org/bugs/show_bug.cgi?id=27157">27157</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>opt -O3 crashes with debug-only=loop-unroll
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Scalar Optimizations
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>paulsson@linux.vnet.ibm.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, michael.v.zolotukhin@gmail.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=16139" name="attach_16139" title="opt input">attachment 16139</a> <a href="attachment.cgi?id=16139&action=edit" title="opt input">[details]</a></span>
opt input

For the supplied test case, the LoopUnroll pass crashes in DT->verifyDomTree()
if debug output is enabled. This causes the verifyDomTree() function to be
called.


  if (DT && !CompletelyUnroll)
    DT->recalculate(*L->getHeader()->getParent());
  else
    DEBUG(DT->verifyDomTree());        <<<<<<<<<<<<<<<<<<


bin/opt ./reg-stack.bc -O3 -mtriple=s390x-linux-gnu -mcpu=z13
-debug-only=loop-unroll</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>