<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 --- - Assertion `NewOuter->isRecursivelyLCSSAForm(*DT) && "LCSSA is broken after separating nested loops!"' failed."
   href="https://llvm.org/bugs/show_bug.cgi?id=28825">28825</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion `NewOuter->isRecursivelyLCSSAForm(*DT) && "LCSSA is broken after separating nested loops!"' failed.
          </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>Core LLVM classes
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>chisophugis@gmail.com
          </td>
        </tr>

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

        <tr>
          <th>Blocks</th>
          <td>28315
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=16867" name="attach_16867" title="Failing test case.">attachment 16867</a> <a href="attachment.cgi?id=16867&action=edit" title="Failing test case.">[details]</a></span>
Failing test case.

opt: /home/sean/pg/llvm/lib/Transforms/Utils/LoopSimplify.cpp:383: llvm::Loop*
separateNestedLoop(llvm::Loop*, llvm::BasicBlock*, llvm::DominatorTree*,
llvm::LoopInfo*, llvm::ScalarEvolution*, bool, llvm::AssumptionCache*):
Assertion `NewOuter->isRecursivelyLCSSAForm(*DT) && "LCSSA is broken after
separating nested loops!"' failed.


For some reason this only manifests with the new PM.

opt -passes='function(lcssa,loop-simplify)' -disable-output $1

(
but this succeeds:
opt -lcssa -loop-simplify -disable-output $1
)


Sorry for the enormous testcase (attached). Even with the new hotness for CFG
reduction that DannyB added recently this is the best that bugpoint can do.</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>