<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 at LegalizeVectorOps.cpp:210"
   href="https://bugs.llvm.org/show_bug.cgi?id=43510">43510</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failure at LegalizeVectorOps.cpp:210
          </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>Windows NT
          </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>Common Code Generator Code
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>andrew@scheidecker.net
          </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=22607" name="attach_22607" title="Minimal test case">attachment 22607</a> <a href="attachment.cgi?id=22607&action=edit" title="Minimal test case">[details]</a></span>
Minimal test case

With the attached crash1.ll, running 'llc crash1.ll -O0' in a debug build of
LLVM triggers this assertion failure:

Assertion failed: LegalizedNodes.count(OldRoot) && "Root didn't get
legalized?", file
C:\Dev\llvm9\llvm\lib\CodeGen\SelectionDAG\LegalizeVectorOps.cpp, line 210


The module that triggers this is quite simple; just a constrained vector fadd
followed by an infinite loop:

define fastcc { i8*, { <2 x i64>, <2 x i64> } } @functionDef0(i8*) {
entry:
  %1 = call <2 x double> @llvm.experimental.constrained.fadd.v2f64(<2 x double>
<double 0x1, double 0x1>, <2 x double> zeroinitializer, metadata
!"round.tonearest", metadata !"fpexcept.strict")
  br label %loopBody

loopBody:                                         ; preds = %loopBody, %entry
  br label %loopBody
}</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>