<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 - infinite recursion with opt -instcombine"
   href="https://bugs.llvm.org/show_bug.cgi?id=47752">47752</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>infinite recursion with opt -instcombine
          </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>Scalar Optimizations
          </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=24029" name="attach_24029" title="bbi-48251.ll reproducer">attachment 24029</a> <a href="attachment.cgi?id=24029&action=edit" title="bbi-48251.ll reproducer">[details]</a></span>
bbi-48251.ll reproducer

llvm commit: 1aa8e6a51a0eb

Reproduce with:
 opt -S -o - bbi-48251.ll -instcombine

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: ../../master/llvm/build-all/bin/opt -S -o -
bbi-48251.ll -instcombine 
1.      Running pass 'Function Pass Manager' on module 'bbi-48251.ll'.
2.      Running pass 'Combine redundant instructions' on function '@g'
  #0 0x00000000027d2723 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
(../../master/llvm/build-all/bin/opt+0x27d2723)
  #1 0x00000000027d03ee llvm::sys::RunSignalHandlers()
(../../master/llvm/build-all/bin/opt+0x27d03ee)
  #2 0x00000000027d2bdc SignalHandler(int)
(../../master/llvm/build-all/bin/opt+0x27d2bdc)
  #3 0x00007fadc69978a0 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x128a0)
  #4 0x00000000022e25f2 llvm::Negator::visitImpl(llvm::Value*, unsigned int)
(../../master/llvm/build-all/bin/opt+0x22e25f2)
  #5 0x00000000022e4323 llvm::Negator::negate(llvm::Value*, unsigned int)
(../../master/llvm/build-all/bin/opt+0x22e4323)
  #6 0x00000000022e34e1 llvm::Negator::visitImpl(llvm::Value*, unsigned int)
(../../master/llvm/build-all/bin/opt+0x22e34e1)
  #7 0x00000000022e4323 llvm::Negator::negate(llvm::Value*, unsigned int)
(../../master/llvm/build-all/bin/opt+0x22e4323)

etc

This starts happening with commit 67266d879c7 from April 22:

    [InstCombine] Negator: shufflevector is negatible

    All these folds are correct as per alive-tv</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>