<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 - Can't get register for value! UNREACHABLE executed at ../lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:1344!"
href="https://bugs.llvm.org/show_bug.cgi?id=37311">37311</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Can't get register for value! UNREACHABLE executed at ../lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:1344!
</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>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Backend: X86
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>francisvm@yahoo.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=20253" name="attach_20253" title="C++ source.">attachment 20253</a> <a href="attachment.cgi?id=20253&action=edit" title="C++ source.">[details]</a></span>
C++ source.
Code from
<a href="http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20180430/547569.html">http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20180430/547569.html</a>.
$ clang -v
clang version 7.0.0 (<a href="https://llvm.org/git/clang">https://llvm.org/git/clang</a>
b7af214275695a5cdf1aa0d2305023560917cd03) (llvm/trunk 331259)
$ clang cfi.cc -fsanitize=cfi -fwhole-program-vtables -flto -fvisibility=hidden
-g -O2 -fno-omit-frame-pointer -target x86_64-linux-unknown -c -S -o cfi.ll
$ llc cfi.ll
Can't get register for value!
UNREACHABLE executed at
../lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:1344!
Stack dump:
0. Program arguments: /Users/francisvm/llvm/llvm/build/bin/llc cfi.ll
1. Running pass 'Function Pass Manager' on module 'cfi.ll'.
2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@_Z1cv'
0 llc 0x00000001082e494c
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 60
1 llc 0x00000001082e4ee9
PrintStackTraceSignalHandler(void*) + 25
2 llc 0x00000001082e0ad9 llvm::sys::RunSignalHandlers() +
425
3 llc 0x00000001082e52a2 SignalHandler(int) + 354
4 libsystem_platform.dylib 0x00007fff69ea4d9a _sigtramp + 26
5 libsystem_platform.dylib 0x000000011ccb3135 _sigtramp + 3001082805
6 libsystem_c.dylib 0x00007fff69d60f79 abort + 127
7 llc 0x0000000108199c00
llvm::install_out_of_memory_new_handler() + 0
8 llc 0x0000000107f8e0af
llvm::SelectionDAGBuilder::getValueImpl(llvm::Value const*) + 6751
9 llc 0x0000000107f8c5aa
llvm::SelectionDAGBuilder::getValue(llvm::Value const*) + 170
10 llc 0x0000000107fa819a
llvm::SelectionDAGBuilder::visitTargetIntrinsic(llvm::CallInst const&, unsigned
int) + 826
11 llc 0x0000000107fa9d54
llvm::SelectionDAGBuilder::visitIntrinsicCall(llvm::CallInst const&, unsigned
int) + 3236
12 llc 0x0000000107f8361f
llvm::SelectionDAGBuilder::visitCall(llvm::CallInst const&) + 367
13 llc 0x0000000107f76fb7
llvm::SelectionDAGBuilder::visit(unsigned int, llvm::User const&) + 1223
14 llc 0x0000000107f75f58
llvm::SelectionDAGBuilder::visit(llvm::Instruction const&) + 152
15 llc 0x000000010809320e
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&) + 206
16 llc 0x0000000108091c11
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 10513
17 llc 0x000000010808d6c2
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 2674
18 llc 0x000000010641081b (anonymous
namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 59
19 llc 0x0000000107022031
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 449
20 llc 0x000000010767fcef
llvm::FPPassManager::runOnFunction(llvm::Function&) + 399
21 llc 0x00000001076801f5
llvm::FPPassManager::runOnModule(llvm::Module&) + 117
22 llc 0x0000000107680fcc (anonymous
namespace)::MPPassManager::runOnModule(llvm::Module&) + 2204
23 llc 0x00000001076804b6
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 342
24 llc 0x0000000107681d11
llvm::legacy::PassManager::run(llvm::Module&) + 33
25 llc 0x0000000104cf4351 compileModule(char**,
llvm::LLVMContext&) + 20385
26 llc 0x0000000104cee653 main + 5123
27 libdyld.dylib 0x00007fff69ca5f45 start + 1
28 libdyld.dylib 0x0000000000000002 start + 2520096958</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>