<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 - llc -O1 crashes in 'Canonicalize Freeze Instructions in Loops' with tons of SCEV calls on the call stack"
   href="https://bugs.llvm.org/show_bug.cgi?id=50255">50255</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>llc -O1 crashes in 'Canonicalize Freeze Instructions in Loops' with tons of SCEV calls on the call stack
          </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>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Loop Optimizer
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>mikael.holmen@ericsson.com
          </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=24840" name="attach_24840" title="bbi-35733_2.ll reproducer">attachment 24840</a> <a href="attachment.cgi?id=24840&action=edit" title="bbi-35733_2.ll reproducer">[details]</a></span>
bbi-35733_2.ll reproducer

Reproduce with:
 llc -O1 -o /dev/null bbi-35733_2.ll

Result:
PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace.
Stack dump:
0.      Program arguments: /repo/uabelho/master-github/llvm/build-all/bin/llc
-O1 -o /dev/null bbi-35733_2.ll
1.      Running pass 'Function Pass Manager' on module 'bbi-35733_2.ll'.
2.      Running pass 'Loop Pass Manager' on function '@g'
3.      Running pass 'Canonicalize Freeze Instructions in Loops' on basic block
'%for.body'
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH
or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
/repo/uabelho/master-github/llvm/build-all/bin/llc(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamEi+0x23)[0x2803f73]
/repo/uabelho/master-github/llvm/build-all/bin/llc(_ZN4llvm3sys17RunSignalHandlersEv+0xee)[0x2801c2e]
/repo/uabelho/master-github/llvm/build-all/bin/llc[0x2804436]
/lib64/libpthread.so.0(+0xf630)[0x7f464da20630]
/repo/uabelho/master-github/llvm/build-all/bin/llc(_ZN4llvm15ScalarEvolution19createAddRecFromPHIEPNS_7PHINodeE+0x1)[0x19d5231]
[...]
/repo/uabelho/master-github/llvm/build-all/bin/llc(_ZN4llvm15ScalarEvolution10createSCEVEPNS_5ValueE+0x1736)[0x19cf916]
/repo/uabelho/master-github/llvm/build-all/bin/llc(_ZN4llvm15ScalarEvolution7getSCEVEPNS_5ValueE+0x47)[0x19cace7]
Segmentation fault</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>