[prev in list] [next in list] [prev in thread] [next in thread] 

List:       llvm-bugs
Subject:    [llvm-bugs] [Bug 43510] New: Assertion failure at LegalizeVectorOps.cpp:210
From:       via llvm-bugs <llvm-bugs () lists ! llvm ! org>
Date:       2019-09-30 17:07:34
Message-ID: bug-43510-206 () http ! bugs ! llvm ! org/
[Download RAW message or body]

--1569863254.7fE84DA70.23162
Date: Mon, 30 Sep 2019 10:07:34 -0700
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://bugs.llvm.org/
Auto-Submitted: auto-generated

https://bugs.llvm.org/show_bug.cgi?id=43510

            Bug ID: 43510
           Summary: Assertion failure at LegalizeVectorOps.cpp:210
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs@nondot.org
          Reporter: andrew@scheidecker.net
                CC: llvm-bugs@lists.llvm.org

Created attachment 22607
  --> https://bugs.llvm.org/attachment.cgi?id=22607&action=edit
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
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
--1569863254.7fE84DA70.23162
Date: Mon, 30 Sep 2019 10:07:34 -0700
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://bugs.llvm.org/
Auto-Submitted: auto-generated

<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&#64;nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>andrew&#64;scheidecker.net
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs&#64;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&amp;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) &amp;&amp; &quot;Root didn't get
legalized?&quot;, 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*, { &lt;2 x i64&gt;, &lt;2 x i64&gt; } } &#64;functionDef0(i8*) {
entry:
  %1 = call &lt;2 x double&gt; &#64;llvm.experimental.constrained.fadd.v2f64(&lt;2 x \
double&gt; &lt;double 0x1, double 0x1&gt;, &lt;2 x double&gt; zeroinitializer, \
                metadata
!&quot;round.tonearest&quot;, metadata !&quot;fpexcept.strict&quot;)
  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>
--1569863254.7fE84DA70.23162--


[Attachment #3 (text/plain)]

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic