[llvm-bugs] [Bug 42992] New: Assertion failure in SelectionDAGISel.cpp: Op->getNodeId() != -1
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Aug 13 17:00:17 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=42992
Bug ID: 42992
Summary: Assertion failure in SelectionDAGISel.cpp:
Op->getNodeId() != -1
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: zhizhouy at google.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
Created attachment 22376
--> https://bugs.llvm.org/attachment.cgi?id=22376&action=edit
reproduce
Find this assertion failure when building project in ChromeOS on specific amd64
board. Attached is a reproduce, run with:
clang++ -O2 -march=skylake -c brw_vec4_nir.ii
Error:
clang-9: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1151: void
llvm::SelectionDAGISel::DoInstructionSelection(): Assertion `Op->getNodeId() !=
-1 && "Node has already selected predecessor node"' failed.
Stack dump:
0. Program arguments: /usr/bin/clang-9 -cc1 -triple x86_64-pc-linux-gnu
-emit-obj -disable-free -main-file-name brw_vec4_nir.ii -mrelocation-model
static -mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases
-munwind-tables -fuse-init-array -target-cpu skylake -dwarf-column-info
-debugger-tuning=gdb -momit-leaf-frame-pointer -coverage-notes-file
/home/zhizhouy/trunk/src/scripts/Workspace/brw_vec4_nir.gcno -resource-dir
/usr/lib64/clang/9.0.0 -O2 -fdeprecated-macro -fdebug-compilation-dir
/home/zhizhouy/trunk/src/scripts/Workspace -ferror-limit 19 -fmessage-length 0
-fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option
-fcolor-diagnostics -vectorize-loops -vectorize-slp -faddrsig -o brw_vec4_nir.o
-x c++-cpp-output brw_vec4_nir.ii
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'brw_vec4_nir.ii'.
4. Running pass 'X86 DAG->DAG Instruction Selection' on function
'@_ZN3brw12vec4_visitor18nir_emit_intrinsicEP19nir_intrinsic_instr'
#0 0x0000000003ef50f8 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/bin/clang-9+0x3ef50f8)
#1 0x0000000003ef2c30 llvm::sys::RunSignalHandlers()
(/usr/bin/clang-9+0x3ef2c30)
#2 0x0000000003ef57a8 (/usr/bin/clang-9+0x3ef57a8)
#3 0x00007f0584f55540 __restore_rt (/lib64/libpthread.so.0+0x12540)
#4 0x00007f0583b0dd31 raise (/lib64/libc.so.6+0x35d31)
#5 0x00007f0583b0fa41 abort (/lib64/libc.so.6+0x37a41)
#6 0x00007f0583b06437 (/lib64/libc.so.6+0x2e437)
#7 0x00007f0583b064e2 (/lib64/libc.so.6+0x2e4e2)
#8 0x0000000004c85216 llvm::SelectionDAGISel::DoInstructionSelection()
(/usr/bin/clang-9+0x4c85216)
#9 0x0000000004c83928 llvm::SelectionDAGISel::CodeGenAndEmitDAG()
(/usr/bin/clang-9+0x4c83928)
#10 0x0000000004c80e3c
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(/usr/bin/clang-9+0x4c80e3c)
#11 0x0000000004c7cb92
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/usr/bin/clang-9+0x4c7cb92)
#12 0x0000000002c7fec9 (/usr/bin/clang-9+0x2c7fec9)
#13 0x0000000003497809
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/usr/bin/clang-9+0x3497809)
#14 0x0000000003859367 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/usr/bin/clang-9+0x3859367)
#15 0x0000000003859888 llvm::FPPassManager::runOnModule(llvm::Module&)
(/usr/bin/clang-9+0x3859888)
#16 0x0000000003859daa llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/usr/bin/clang-9+0x3859daa)
#17 0x00000000044b2439 (/usr/bin/clang-9+0x44b2439)
#18 0x00000000044aaa4a clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout
const&, llvm::Module*, clang::BackendAction,
std::__1::unique_ptr<llvm::raw_pwrite_stream,
std::__1::default_delete<llvm::raw_pwrite_stream> >)
(/usr/bin/clang-9+0x44aaa4a)
#19 0x00000000047e94d6 (/usr/bin/clang-9+0x47e94d6)
#20 0x000000000580b246 clang::ParseAST(clang::Sema&, bool, bool)
(/usr/bin/clang-9+0x580b246)
#21 0x000000000471f533 clang::FrontendAction::Execute()
(/usr/bin/clang-9+0x471f533)
#22 0x0000000004693294
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/bin/clang-9+0x4693294)
#23 0x00000000047e3b37
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/bin/clang-9+0x47e3b37)
#24 0x0000000002a4b1ff cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/bin/clang-9+0x2a4b1ff)
#25 0x0000000002a48191 main (/usr/bin/clang-9+0x2a48191)
#26 0x00007f0583af9a8e __libc_start_main (/lib64/libc.so.6+0x21a8e)
#27 0x0000000002a4502a _start (/usr/bin/clang-9+0x2a4502a)
clang-9: error: unable to execute command: Aborted
clang-9: error: clang frontend command failed due to signal (use -v to see
invocation)
--
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/20190814/2b5189ac/attachment.html>
More information about the llvm-bugs
mailing list