[llvm-bugs] [Bug 33571] New: Cannot emit physreg copy instruction

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jun 23 11:29:28 PDT 2017


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

            Bug ID: 33571
           Summary: Cannot emit physreg copy instruction
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: hans at chromium.org
                CC: llvm-bugs at lists.llvm.org

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

trunk clang is failing to build chromium:

Cannot emit physreg copy instruction
UNREACHABLE executed at ../lib/Target/X86/X86InstrInfo.cpp:6707!
#0 0x0000000001fa48aa llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/local/google/work/llvm/build.release/bin/clang-4.0+0x1fa48aa)
#1 0x0000000001fa295e llvm::sys::RunSignalHandlers()
(/usr/local/google/work/llvm/build.release/bin/clang-4.0+0x1fa295e)
#2 0x0000000001fa2ac2 SignalHandler(int)
(/usr/local/google/work/llvm/build.release/bin/clang-4.0+0x1fa2ac2)
#3 0x00007fdcc19bb330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#4 0x00007fdcc07acc37 gsignal
/build/eglibc-MjiXCM/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#5 0x00007fdcc07b0028 abort
/build/eglibc-MjiXCM/eglibc-2.19/stdlib/abort.c:91:0
#6 0x0000000001f560c5
(/usr/local/google/work/llvm/build.release/bin/clang-4.0+0x1f560c5)
#7 0x000000000156e648 llvm::X86InstrInfo::copyPhysReg(llvm::MachineBasicBlock&,
llvm::MachineInstrBundleIterator<llvm::MachineInstr, false>, llvm::DebugLoc
const&, unsigned int, unsigned int, bool) const
(/usr/local/google/work/llvm/build.release/bin/clang-4.0+0x156e648)
#8 0x00000000019fc8a7 (anonymous
namespace)::ExpandPostRA::runOnMachineFunction(llvm::MachineFunction&)
(/usr/local/google/work/llvm/build.release/bin/clang-4.0+0x19fc8a7)
#9 0x00000000018817d5 llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/usr/local/google/work/llvm/build.release/bin/clang-4.0+0x18817d5)
#10 0x0000000001b66703 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/usr/local/google/work/llvm/build.release/bin/clang-4.0+0x1b66703)
#11 0x0000000001b667ac llvm::FPPassManager::runOnModule(llvm::Module&)
(/usr/local/google/work/llvm/build.release/bin/clang-4.0+0x1b667ac)
#12 0x0000000001b6751f llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/usr/local/google/work/llvm/build.release/bin/clang-4.0+0x1b6751f)
#13 0x000000000212ee5e (anonymous
namespace)::EmitAssemblyHelper::EmitAssembly(clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/usr/local/google/work/llvm/build.release/bin/clang-4.0+0x212ee5e)
#14 0x00000000021301e1 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout
const&, llvm::Module*, clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/usr/local/google/work/llvm/build.release/bin/clang-4.0+0x21301e1)
#15 0x00000000027bffdb
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/usr/local/google/work/llvm/build.release/bin/clang-4.0+0x27bffdb)
#16 0x0000000002bb6482 clang::ParseAST(clang::Sema&, bool, bool)
(/usr/local/google/work/llvm/build.release/bin/clang-4.0+0x2bb6482)
#17 0x00000000027bf3af clang::CodeGenAction::ExecuteAction()
(/usr/local/google/work/llvm/build.release/bin/clang-4.0+0x27bf3af)
#18 0x00000000024b5ca6 clang::FrontendAction::Execute()
(/usr/local/google/work/llvm/build.release/bin/clang-4.0+0x24b5ca6)
#19 0x000000000248df06
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/local/google/work/llvm/build.release/bin/clang-4.0+0x248df06)
#20 0x0000000002544ae4
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/local/google/work/llvm/build.release/bin/clang-4.0+0x2544ae4)
#21 0x0000000000b56878 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/local/google/work/llvm/build.release/bin/clang-4.0+0xb56878)
#22 0x0000000000af5b87 main
(/usr/local/google/work/llvm/build.release/bin/clang-4.0+0xaf5b87)
#23 0x00007fdcc0797f45 __libc_start_main
/build/eglibc-MjiXCM/eglibc-2.19/csu/libc-start.c:321:0
#24 0x0000000000b51ee9 _start
(/usr/local/google/work/llvm/build.release/bin/clang-4.0+0xb51ee9)
Stack dump:
0.      Program arguments:
/usr/local/google/work/llvm/build.release/bin/clang-4.0 -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name cstring.cpp
-mrelocation-model pic -pic-level 2 -mthread-model posix -relaxed-aliasing
-fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables
-fuse-init-array -target-cpu x86-64 -momit-leaf-frame-pointer
-dwarf-column-info -debugger-tuning=gdb -ffunction-sections -fdata-sections
-coverage-notes-file
/usr/local/google/work/chromium/src/out/release/obj/third_party/icu/icuuc/cstring.gcno
-resource-dir /usr/local/google/work/llvm/build.release/lib/clang/5.0.0
-dependency-file obj/third_party/icu/icuuc/cstring.o.d -MT
obj/third_party/icu/icuuc/cstring.o -D U_COMMON_IMPLEMENTATION -D
U_ICUDATAENTRY_IN_COMMON -D V8_DEPRECATION_WARNINGS -D USE_UDEV -D USE_AURA=1
-D USE_PANGO=1 -D USE_CAIRO=1 -D USE_GLIB=1 -D USE_NSS_CERTS=1 -D USE_X11=1 -D
FULL_SAFE_BROWSING -D SAFE_BROWSING_CSD -D SAFE_BROWSING_DB_LOCAL -D
OFFICIAL_BUILD -D CHROMIUM_BUILD -D FIELDTRIAL_TESTING_ENABLED -D
CR_CLANG_REVISION="301385" -D _FILE_OFFSET_BITS=64 -D _LARGEFILE_SOURCE -D
_LARGEFILE64_SOURCE -D NDEBUG -D NVALGRIND -D DYNAMIC_ANNOTATIONS_ENABLED=0 -D
HAVE_DLOPEN=0 -D UCONFIG_ONLY_HTML_CONVERSION=1 -D U_CHARSET_IS_UTF8=1 -D
U_USING_ICU_NAMESPACE=0 -D U_ENABLE_DYLOAD=0 -D U_STATIC_IMPLEMENTATION -D
ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -D UCHAR_TYPE=uint16_t -I ../.. -I gen -I
../../third_party/icu/source/common -I ../../third_party/icu/source/i18n
-isysroot ../../build/linux/debian_jessie_amd64-sysroot -internal-isystem
../../build/linux/debian_jessie_amd64-sysroot/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8
-internal-isystem
../../build/linux/debian_jessie_amd64-sysroot/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8
-internal-isystem
../../build/linux/debian_jessie_amd64-sysroot/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8
-internal-isystem
../../build/linux/debian_jessie_amd64-sysroot/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/backward
-internal-isystem
../../build/linux/debian_jessie_amd64-sysroot/usr/local/include
-internal-isystem
/usr/local/google/work/llvm/build.release/lib/clang/5.0.0/include
-internal-externc-isystem
../../build/linux/debian_jessie_amd64-sysroot/usr/include/x86_64-linux-gnu
-internal-externc-isystem ../../build/linux/debian_jessie_amd64-sysroot/include
-internal-externc-isystem
../../build/linux/debian_jessie_amd64-sysroot/usr/include -O2 -Wheader-hygiene
-Wstring-conversion -Wtautological-overlap-compare -Werror -Wall
-Wno-unused-variable -Wno-missing-field-initializers -Wno-unused-parameter
-Wno-c++11-narrowing -Wno-covered-switch-default
-Wno-unneeded-internal-declaration -Wno-inconsistent-missing-override
-Wno-undefined-var-template -Wno-nonportable-include-path
-Wno-address-of-packed-member -Wno-unused-lambda-capture
-Wno-user-defined-warnings -Wno-unused-function -Wno-parentheses
-Wno-unused-function -Wno-deprecated-declarations -std=gnu++11
-fdeprecated-macro -fdebug-compilation-dir
/usr/local/google/work/chromium/src/out/release -ferror-limit 19
-fmessage-length 0 -fvisibility hidden -fvisibility-inlines-hidden -pthread
-stack-protector 1 -stack-protector-buffer-size 4 -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o obj/third_party/icu/icuuc/cstring.o -x c++
../../third_party/icu/source/common/cstring.cpp 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'../../third_party/icu/source/common/cstring.cpp'.
4.      Running pass 'Post-RA pseudo instruction expansion pass' on function
'@uprv_stricmp_59'
clang-4.0: error: unable to execute command: Aborted (core dumped)
clang-4.0: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 5.0.0 (trunk 306127) (llvm/trunk 306133)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir:
/usr/local/google/work/chromium/src/out/release/../../../../../../../../work/llvm/build.release/bin
clang-4.0: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-4.0: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-4.0: note: diagnostic msg: /tmp/cstring-401a7e.cpp
clang-4.0: note: diagnostic msg: /tmp/cstring-401a7e.sh
clang-4.0: note: diagnostic msg: 

********************

-- 
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/20170623/c0dbe83c/attachment.html>


More information about the llvm-bugs mailing list