<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 failure: /lib/Analysis/ScopInfo.cpp:797: void polly::MemoryAccess::computeBoundsOnAccessRelation(unsigned int): Assertion `M in.sle(Max) && "Minimum expected to be less or equal than max"' failed."
   href="https://bugs.llvm.org/show_bug.cgi?id=32715">32715</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failure: /lib/Analysis/ScopInfo.cpp:797: void polly::MemoryAccess::computeBoundsOnAccessRelation(unsigned int): Assertion `M in.sle(Max) && "Minimum expected to be less or equal than max"' failed.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Polly
          </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>Other
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>sabuasal@codeaurora.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=18315" name="attach_18315" title="reduced ll file for the test case">attachment 18315</a> <a href="attachment.cgi?id=18315&action=edit" title="reduced ll file for the test case">[details]</a></span>
reduced ll file for the test case

This bug causes a crash in ScopInfo with an assertion failure:

"opt: lib/Analysis/ScopInfo.cpp:797: void
polly::MemoryAccess::computeBoundsOnAccessRelation(unsigned int): Assertion `M
in.sle(Max) && "Minimum expected to be less or equal than max"' failed."



Reduced IR attached. 

can recrete the crash with 


opt -S -O3 -polly  -polly-scops  -polly-tiling=false -polly-allow-nonaffine
-polly-process-unprofitable  ./test_case.ll

My investigation shows this was introduced by r294891 :

Author: Tobias Grosser <<a href="mailto:tobias@grosser.es">tobias@grosser.es</a>>
Date:   Sun Feb 12 08:11:12 2017 +0000
    Do not use wrapping ranges to bound non-affine accesses</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>