<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 --- - [Polly] isl based iteration loop modeling accepts infinite loop"
   href="https://llvm.org/bugs/show_bug.cgi?id=24634">24634</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[Polly] isl based iteration loop modeling accepts infinite loop
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Projects
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>Polly
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>polly-dev@googlegroups.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tobias@grosser.es
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

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

Hi,

it seems the isl based loop modeling accepts infinite loops. This breaks our
code generation as we currently do not expect infinite loops. I propose to
not model infinite loops for now.

$ polly-opt -polly-codegen -polly-no-early-exit named.ll 

opt:
/home/grosser/Projects/polly/git/tools/polly/lib/CodeGen/IslNodeBuilder.cpp:63:
isl_ast_expr *IslNodeBuilder::getUpperBound(isl_ast_node *, ICmpInst::Predicate
&): Assertion `isl_ast_expr_get_type(Cond) == isl_ast_expr_op && "conditional
expression is not an atomic upper bound"' failed.</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>