[llvm-bugs] [Bug 46532] New: LegalizeIntegerTypes.cpp:1438: bool llvm::DAGTypeLegalizer::PromoteIntegerOperand(llvm::SDNode *, unsigned int): Assertion `Res.getValueType() == N->getValueType(0) && N->getNumValues() == (IsStrictFp ? 2 : 1) && "Invalid operand expansion"' failed.

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jul 1 09:20:12 PDT 2020


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

            Bug ID: 46532
           Summary: LegalizeIntegerTypes.cpp:1438: bool
                    llvm::DAGTypeLegalizer::PromoteIntegerOperand(llvm::SD
                    Node *, unsigned int): Assertion `Res.getValueType()
                    == N->getValueType(0) && N->getNumValues() ==
                    (IsStrictFp ? 2 : 1) && "Invalid operand expansion"'
                    failed.
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: benny.kra at gmail.com
                CC: ajcbik at google.com, craig.topper at gmail.com,
                    llvm-bugs at lists.llvm.org, llvm-dev at redking.me.uk,
                    ntv at google.com, spatel+llvm at rotateright.com

Created attachment 23669
  --> https://bugs.llvm.org/attachment.cgi?id=23669&action=edit
Reduced test case

This only happens when targeting Haswell.

$ llc < bugpoint-reduced-simplified.ll
llc: llvm-project/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp:1438:
bool llvm::DAGTypeLeg
alizer::PromoteIntegerOperand(llvm::SDNode *, unsigned int): Assertion
`Res.getValueType() == N->getValueType(0) && N->getNumValues
() == (IsStrictFp ? 2 : 1) && "Invalid operand expansion"' failed.
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace.
Stack dump:
0.      Program arguments: llc
1.      Running pass 'Function Pass Manager' on module '<stdin>'.
2.      Running pass 'X86 DAG->DAG Instruction Selection' on function
'@WhileWithLoopInvariantOperation.21'

-- 
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/20200701/a855e185/attachment.html>


More information about the llvm-bugs mailing list