[llvm-bugs] [Bug 35219] New: llc crashes in SelectionDAG

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Nov 6 17:01:34 PST 2017


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

            Bug ID: 35219
           Summary: llc crashes in SelectionDAG
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: dmitry.mikulin at sony.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 19375
  --> https://bugs.llvm.org/attachment.cgi?id=19375&action=edit
repro test

@llvm.type.test triggers a crash with the attached test case:
Can't get register for value!
UNREACHABLE executed at
/Users/dmikulin/Dev/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:1151!
0  llc                      0x0000000109207f2c
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 60
1  llc                      0x00000001092084a9
PrintStackTraceSignalHandler(void*) + 25
2  llc                      0x0000000109204599 llvm::sys::RunSignalHandlers() +
425
3  llc                      0x0000000109208832 SignalHandler(int) + 354
4  libsystem_platform.dylib 0x00007fffb047cb3a _sigtramp + 26
5  libsystem_platform.dylib 0x000000011235c86d _sigtramp + 1642986829
6  libsystem_c.dylib        0x00007fffb0301420 abort + 129
7  llc                      0x0000000109105010 LLVMInstallFatalErrorHandler + 0
8  llc                      0x0000000108ef54af
llvm::SelectionDAGBuilder::getValueImpl(llvm::Value const*) + 6783
9  llc                      0x0000000108ef398a
llvm::SelectionDAGBuilder::getValue(llvm::Value const*) + 170
10 llc                      0x0000000108f0e26f
llvm::SelectionDAGBuilder::visitTargetIntrinsic(llvm::CallInst const&, unsigned
int) + 751
11 llc                      0x0000000108f0febb
llvm::SelectionDAGBuilder::visitIntrinsicCall(llvm::CallInst const&, unsigned
int) + 3035
12 llc                      0x0000000108eec10c
llvm::SelectionDAGBuilder::visitCall(llvm::CallInst const&) + 364
13 llc                      0x0000000108ee0167
llvm::SelectionDAGBuilder::visit(unsigned int, llvm::User const&) + 1223
14 llc                      0x0000000108edf1a8
llvm::SelectionDAGBuilder::visit(llvm::Instruction const&) + 152
15 llc                      0x0000000108fde430
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&) + 192
16 llc                      0x0000000108fdd064
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 10180
17 llc                      0x0000000108fd8db0
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 2400
18 llc                      0x0000000107673bbb (anonymous
namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 59
19 llc                      0x00000001081d0631
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 449
20 llc                      0x0000000108712e6f
llvm::FPPassManager::runOnFunction(llvm::Function&) + 399
21 llc                      0x0000000108713375
llvm::FPPassManager::runOnModule(llvm::Module&) + 117
22 llc                      0x0000000108714144 (anonymous
namespace)::MPPassManager::runOnModule(llvm::Module&) + 2196
23 llc                      0x0000000108713636
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 342
24 llc                      0x0000000108714e71
llvm::legacy::PassManager::run(llvm::Module&) + 33
25 llc                      0x00000001061dcab0 compileModule(char**,
llvm::LLVMContext&) + 21856
26 llc                      0x00000001061d6957 main + 2471
27 libdyld.dylib            0x00007fffb026d235 start + 1
Stack dump:
0.      Program arguments: /Users/dmikulin/Dev/llvm/build/bin/llc test.ll 
1.      Running pass 'Function Pass Manager' on module 'test.ll'.
2.      Running pass 'X86 DAG->DAG Instruction Selection' on function '@fk'
Abort trap: 6

-- 
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/20171107/fe48afd6/attachment-0001.html>


More information about the llvm-bugs mailing list