[llvm-bugs] [Bug 43510] New: Assertion failure at LegalizeVectorOps.cpp:210

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Sep 30 10:07:34 PDT 2019


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 at nondot.org
          Reporter: andrew at scheidecker.net
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190930/9bac1d37/attachment-0001.html>


More information about the llvm-bugs mailing list