[llvm-bugs] [Bug 37311] New: Can't get register for value! UNREACHABLE executed at ../lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:1344!

via llvm-bugs llvm-bugs at lists.llvm.org
Wed May 2 04:31:21 PDT 2018


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

            Bug ID: 37311
           Summary: Can't get register for value! UNREACHABLE executed at
                    ../lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:13
                    44!
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: francisvm at yahoo.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 20253
  --> https://bugs.llvm.org/attachment.cgi?id=20253&action=edit
C++ source.

Code from
http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20180430/547569.html.

$ clang -v
clang version 7.0.0 (https://llvm.org/git/clang
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

-- 
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/20180502/a3d5d77a/attachment-0001.html>


More information about the llvm-bugs mailing list