https://llvm.org/bugs/show_bug.cgi?id=27584
Bug ID: 27584 Summary: LLVM trunk crash with knl target Product: tools Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: llc Assignee: unassignedb...@nondot.org Reporter: anton.mitrok...@phystech.edu CC: llvm-bugs@lists.llvm.org Classification: Unclassified Created attachment 16283 --> https://llvm.org/bugs/attachment.cgi?id=16283&action=edit Reproducer Reproducer (see attachments): > clang++ -O3 -march=knl out crash.cpp > clang -v: clang version 3.9.0 (trunk 268042) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /export/users/amitrokh/llvm/bin-trunk/bin Found candidate GCC installation: /usr/lib/gcc/i686-redhat-linux/4.8.2 Found candidate GCC installation: /usr/lib/gcc/i686-redhat-linux/4.8.5 Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.2 Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.5 Selected GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.5 Candidate multilib: .;@m64 Candidate multilib: 32;@m32 Selected multilib: .;@m64 Output: clang-3.9: /export/users/amitrokh/llvm/llvm-trunk/lib/IR/Constants.cpp:1987: static llvm::Constant* llvm::ConstantExpr::getGetElementPtr(llvm::Type*, llvm::Constant*, llvm::ArrayRef<llvm::Value*>, bool, llvm::Type*): Assertion `Idxs[i]->getType()->isVectorTy() == ReqTy->isVectorTy() && "getelementptr index type missmatch"' failed. #0 0x000000000110e885 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x110e885) #1 0x000000000110c636 llvm::sys::RunSignalHandlers() (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x110c636) #2 0x000000000110c861 SignalHandler(int) (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x110c861) #3 0x00007fea7b487100 __restore_rt (/lib64/libpthread.so.0+0xf100) #4 0x00007fea7a6b55f7 __GI_raise (/lib64/libc.so.6+0x355f7) #5 0x00007fea7a6b6ce8 __GI_abort (/lib64/libc.so.6+0x36ce8) #6 0x00007fea7a6ae566 __assert_fail_base (/lib64/libc.so.6+0x2e566) #7 0x00007fea7a6ae612 (/lib64/libc.so.6+0x2e612) #8 0x0000000000d35ae4 llvm::ConstantExpr::getGetElementPtr(llvm::Type*, llvm::Constant*, llvm::ArrayRef<llvm::Value*>, bool, llvm::Type*) (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0xd35ae4) #9 0x00000000009b4abc llvm::SimplifyGEPInst(llvm::Type*, llvm::ArrayRef<llvm::Value*>, llvm::DataLayout const&, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*, llvm::AssumptionCache*, llvm::Instruction const*) (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x9b4abc) #10 0x00000000009be85d llvm::SimplifyInstruction(llvm::Instruction*, llvm::DataLayout const&, llvm::TargetLibraryInfo const*, llvm::DominatorTree const*, llvm::AssumptionCache*) (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x9be85d) #11 0x000000000116a994 llvm::UnrollLoop(llvm::Loop*, unsigned int, unsigned int, bool, bool, unsigned int, llvm::LoopInfo*, llvm::ScalarEvolution*, llvm::DominatorTree*, llvm::AssumptionCache*, bool) (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x116a994) #12 0x000000000101c560 tryToUnrollLoop(llvm::Loop*, llvm::DominatorTree&, llvm::LoopInfo*, llvm::ScalarEvolution*, llvm::TargetTransformInfo const&, llvm::AssumptionCache&, bool, llvm::Optional<unsigned int>, llvm::Optional<unsigned int>, llvm::Optional<bool>, llvm::Optional<bool>) (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x101c560) #13 0x000000000101d9e4 (anonymous namespace)::LoopUnroll::runOnLoop(llvm::Loop*, llvm::LPPassManager&) (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x101d9e4) #14 0x00000000019b5a27 llvm::LPPassManager::runOnFunction(llvm::Function&) (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x19b5a27) #15 0x0000000000d9de43 llvm::FPPassManager::runOnFunction(llvm::Function&) (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0xd9de43) #16 0x0000000000d9e1fb llvm::FPPassManager::runOnModule(llvm::Module&) (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0xd9e1fb) #17 0x0000000000d9e50f llvm::legacy::PassManagerImpl::run(llvm::Module&) (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0xd9e50f) #18 0x000000000125bc18 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout const&, llvm::Module*, clang::BackendAction, llvm::raw_pwrite_stream*) (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x125bc18) #19 0x0000000001893efc clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x1893efc) #20 0x0000000001c9218b clang::ParseAST(clang::Sema&, bool, bool) (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x1c9218b) #21 0x00000000018942bb clang::CodeGenAction::ExecuteAction() (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x18942bb) #22 0x0000000001574a76 clang::FrontendAction::Execute() (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x1574a76) #23 0x000000000155079e clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x155079e) #24 0x0000000001608b5c clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x1608b5c) #25 0x00000000006eb6c8 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x6eb6c8) #26 0x00000000006c49bf main (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x6c49bf) #27 0x00007fea7a6a1b15 __libc_start_main (/lib64/libc.so.6+0x21b15) #28 0x00000000006e7745 _start (/export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9+0x6e7745) Stack dump: 0. Program arguments: /export/users/amitrokh/llvm/bin-trunk/bin/clang-3.9 -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name crash.cpp -mrelocation-model static -mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu knl -momit-leaf-frame-pointer -dwarf-column-info -debugger-tuning=gdb -resource-dir /export/users/amitrokh/llvm/bin-trunk/bin/../lib/clang/3.9.0 -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5 -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/x86_64-redhat-linux -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/backward -internal-isystem /usr/local/include -internal-isystem /export/users/amitrokh/llvm/bin-trunk/bin/../lib/clang/3.9.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -fdeprecated-macro -fdebug-compilation-dir /export/users/amitrokh/forCreduce/untracked/new_crash -ferror-limit 19 -fmessage-length 237 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o /tmp/crash-b925ae.o -x c++ crash.cpp 1. <eof> parser at end of file 2. Per-module optimization passes 3. Running pass 'Function Pass Manager' on module 'crash.cpp'. 4. Running pass 'Loop Pass Manager' on function '@_Z4initv' 5. Running pass 'Unroll loops' on basic block '%vector.body' clang-3.9: error: unable to execute command: Aborted (core dumped) clang-3.9: error: clang frontend command failed due to signal (use -v to see invocation) clang version 3.9.0 (trunk 268042) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /export/users/amitrokh/llvm/bin-trunk/bin clang-3.9: 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-3.9: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang-3.9: note: diagnostic msg: /tmp/out-11e039.c clang-3.9: note: diagnostic msg: /tmp/crash-637796.cpp clang-3.9: note: diagnostic msg: /tmp/out-11e039.sh clang-3.9: note: diagnostic msg: ******************** -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs