[llvm-bugs] [Bug 34397] New: [X86] CodeGen crashes on assert of non-simple type after type-legalization

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Aug 31 03:47:45 PDT 2017


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

            Bug ID: 34397
           Summary: [X86] CodeGen crashes on assert of non-simple type
                    after type-legalization
           Product: libraries
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: ayman.musa at intel.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 19071
  --> https://bugs.llvm.org/attachment.cgi?id=19071&action=edit
Reproducer

Run: ../build/bin/llc -mcpu=haswell nonSimpleCrash.ll -o nonSimpleCrash.s

llc:
/export/iusers/aymanmus/workspaces/llorg_git/llvm/include/llvm/CodeGen/ValueTypes.h:254:
llvm::MVT llvm::EVT::getSimpleVT() const: Assertion `isSimple() && "Expected a
SimpleValueType!"' failed.
#0 0x000000000328b331 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/Support/Unix/Signals.inc:398:0
#1 0x000000000328b3c2 PrintStackTraceSignalHandler(void*)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/Support/Unix/Signals.inc:462:0
#2 0x0000000003289906 llvm::sys::RunSignalHandlers()
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/Support/Signals.cpp:49:0
#3 0x000000000328acc9 SignalHandler(int)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/Support/Unix/Signals.inc:252:0
#4 0x00007fc8bf173100 __restore_rt (/lib64/libpthread.so.0+0xf100)
#5 0x00007fc8bdd6b5f7 __GI_raise (/lib64/libc.so.6+0x355f7)
#6 0x00007fc8bdd6cce8 __GI_abort (/lib64/libc.so.6+0x36ce8)
#7 0x00007fc8bdd64566 __assert_fail_base (/lib64/libc.so.6+0x2e566)
#8 0x00007fc8bdd64612 (/lib64/libc.so.6+0x2e612)
#9 0x0000000001328c2a llvm::EVT::getSimpleVT() const
/export/iusers/aymanmus/workspaces/llorg_git/llvm/include/llvm/CodeGen/ValueTypes.h:255:0
#10 0x0000000001406634 llvm::SDValue::getSimpleValueType() const
/export/iusers/aymanmus/workspaces/llorg_git/llvm/include/llvm/CodeGen/SelectionDAGNodes.h:170:0
#11 0x00000000031621b7 (anonymous
namespace)::VectorLegalizer::LegalizeOp(llvm::SDValue)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp:236:0
#12 0x00000000031619bb (anonymous namespace)::VectorLegalizer::Run()
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp:164:0
#13 0x0000000003168ce9 llvm::SelectionDAG::LegalizeVectors()
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp:1123:0
#14 0x0000000003108fa3 llvm::SelectionDAGISel::CodeGenAndEmitDAG()
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:786:0
#15 0x0000000003108242
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction,
true, false, void>, false, true>,
llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction, true,
false, void>, false, true>, bool&)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:666:0
#16 0x000000000310d7eb
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1614:0
#17 0x0000000003106f03
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:467:0
#18 0x00000000020c471c (anonymous
namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:178:0
#19 0x00000000027bcfff
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/CodeGen/MachineFunctionPass.cpp:62:0
#20 0x0000000002bac26a llvm::FPPassManager::runOnFunction(llvm::Function&)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/IR/LegacyPassManager.cpp:1514:0
#21 0x0000000002bac3fd llvm::FPPassManager::runOnModule(llvm::Module&)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/IR/LegacyPassManager.cpp:1535:0
#22 0x0000000002bac789 (anonymous
namespace)::MPPassManager::runOnModule(llvm::Module&)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/IR/LegacyPassManager.cpp:1591:0
#23 0x0000000002bace7a llvm::legacy::PassManagerImpl::run(llvm::Module&)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/IR/LegacyPassManager.cpp:1694:0
#24 0x0000000002bad0bb llvm::legacy::PassManager::run(llvm::Module&)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/lib/IR/LegacyPassManager.cpp:1726:0
#25 0x00000000012e8c91 compileModule(char**, llvm::LLVMContext&)
/export/iusers/aymanmus/workspaces/llorg_git/llvm/tools/llc/llc.cpp:567:0
#26 0x00000000012e74fc main
/export/iusers/aymanmus/workspaces/llorg_git/llvm/tools/llc/llc.cpp:342:0
#27 0x00007fc8bdd57b15 __libc_start_main (/lib64/libc.so.6+0x21b15)
#28 0x00000000012e53b9 _start (../build/bin/llc+0x12e53b9)
Stack dump:
0.      Program arguments: ../build/bin/llc -mcpu=haswell
bugpoint-reduced-simplified.ll -o bugpoint-reduced-simplified.s 
1.      Running pass 'Function Pass Manager' on module
'bugpoint-reduced-simplified.ll'.
2.      Running pass 'X86 DAG->DAG Instruction Selection' on function '@test'
Aborted

-- 
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/20170831/abdded53/attachment.html>


More information about the llvm-bugs mailing list