<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 - Segfault in X86TargetLowering::PerformDAGCombine"
   href="https://bugs.llvm.org/show_bug.cgi?id=44002">44002</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Segfault in X86TargetLowering::PerformDAGCombine
          </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>Backend: X86
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>lennart.braun@posteo.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>craig.topper@gmail.com, llvm-bugs@lists.llvm.org, llvm-dev@redking.me.uk, spatel+llvm@rotateright.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=22813" name="attach_22813" title="reduced reproducer and run script">attachment 22813</a> <a href="attachment.cgi?id=22813&action=edit" title="reduced reproducer and run script">[details]</a></span>
reduced reproducer and run script

Hi there,

the x86 code generation of clang/LLVM crashed on my source code. I was using
LLVM 9.0 but could also reproduce the problem with llvm/trunk 375507.

I used C-Reduce [0] to obtain a minimal input file triggering the bug. Then I
used bugpoint as described in [1] to get a reduced/simplified bitcode which
kills llc.

Attached are files with the following:

* reduced source code
* script to reproduce the crash
* clang-9 stack dump
* clang-10 stack dump (llvm/trunk 375507)
* simplified llvm bit code which crashes llc

[0]: <a href="https://github.com/csmith-project/creduce">https://github.com/csmith-project/creduce</a>
[1]: <a href="https://llvm.org/docs/HowToSubmitABug.html#code-generator-bugs">https://llvm.org/docs/HowToSubmitABug.html#code-generator-bugs</a>

Best

Lennart</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>