<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 - [SCEV] Enormous SCEV growth on linear calculations"
   href="https://bugs.llvm.org/show_bug.cgi?id=40292">40292</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[SCEV] Enormous SCEV growth on linear calculations
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

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

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

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>max.kazantsev@azul.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=21316" name="attach_21316" title="simple.ll">attachment 21316</a> <a href="attachment.cgi?id=21316&action=edit" title="simple.ll">[details]</a></span>
simple.ll

The attached file demonstrates a corner case that makes SCEV hang. opt
-loop-vectorize -S works "infinitely" on this test due to huge SCEV creation.
Sometimes I observe crashes by stack overflow that seem to also be caused by
attempts to create huge SCEVs. Also reproducible with opt -analyze
-scalar-evolution (so it is not something specific for vectorizer).

This is a typical scenario of linear calculations with powers that come from
unrolled loops. We used to face problems of this variety in the past. Maybe
it's time to add some mechanism to restrict SCEV from doing any attempts of
simplifications here. Limiting by depth doesn't seem sufficient.</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>