LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 23127 - polly in trunk r233481: Assertion Failed: "TODO: Only block statements can be copied by the vector block generator" in function copyStmt, file CodeGen/BlockGenerators.cpp
Summary: polly in trunk r233481: Assertion Failed: "TODO: Only block statements can be...
Status: RESOLVED FIXED
Alias: None
Product: Polly
Classification: Unclassified
Component: Optimizer (show other bugs)
Version: unspecified
Hardware: PC All
: P normal
Assignee: Polly Development Mailinglist
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-04 22:04 PDT by Jeremy Huddleston Sequoia
Modified: 2016-01-18 17:01 PST (History)
2 users (show)

See Also:
Fixed By Commit(s):


Attachments
vf_noise-212f09.c.bz2 (225.20 KB, application/x-bzip2)
2015-04-04 22:04 PDT, Jeremy Huddleston Sequoia
Details
vf_noise-212f09.sh (3.54 KB, text/plain)
2015-04-04 22:04 PDT, Jeremy Huddleston Sequoia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Huddleston Sequoia 2015-04-04 22:04:37 PDT
Created attachment 14156 [details]
vf_noise-212f09.c.bz2

Assertion failed: (Stmt.isBlockStmt() && "TODO: Only block statements can be copied by " "the vector block generator"), function copyStmt, file CodeGen/BlockGenerators.cpp, line 657.
0  libLLVM-3.7svn.dylib 0x0000000105d7b312 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 57
1  libLLVM-3.7svn.dylib 0x0000000105d7b960 SignalHandler(int) + 220
2  libsystem_c.dylib    0x00007fff892d390a _sigtramp + 26
3  libsystem_c.dylib    0x0000000000000003 _sigtramp + 1993525011
4  libLLVM-3.7svn.dylib 0x0000000105d7b7e3 abort + 22
5  libLLVM-3.7svn.dylib 0x0000000105d7b7cd abort + 0
6  LLVMPolly.dylib      0x0000000107909686 polly::RegionGenerator::repairDominance(llvm::BasicBlock*, llvm::BasicBlock*, llvm::DenseMap<llvm::BasicBlock*, llvm::BasicBlock*, llvm::DenseMapInfo<llvm::BasicBlock*>, llvm::detail::DenseMapPair<llvm::BasicBlock*, llvm::BasicBlock*> >&) + 0
7  LLVMPolly.dylib      0x0000000107911c7c IslNodeBuilder::createUserVector(isl_ast_node*, std::__1::vector<llvm::Value*, std::__1::allocator<llvm::Value*> >&, isl_id*, isl_union_map*) + 328
8  LLVMPolly.dylib      0x00000001079120b9 IslNodeBuilder::createForVector(isl_ast_node*, int) + 787
9  LLVMPolly.dylib      0x000000010791378d IslNodeBuilder::createBlock(isl_ast_node*) + 63
10 LLVMPolly.dylib      0x000000010791378d IslNodeBuilder::createBlock(isl_ast_node*) + 63
11 LLVMPolly.dylib      0x0000000107914099 (anonymous namespace)::IslCodeGeneration::runOnScop(polly::Scop&) + 605
12 LLVMPolly.dylib      0x0000000107901627 polly::ScopPass::runOnRegion(llvm::Region*, llvm::RGPassManager&) + 47
13 libLLVM-3.7svn.dylib 0x00000001052fc0ff llvm::RGPassManager::runOnFunction(llvm::Function&) + 749
14 libLLVM-3.7svn.dylib 0x0000000105664a23 llvm::FPPassManager::runOnFunction(llvm::Function&) + 297
15 libLLVM-3.7svn.dylib 0x000000010566451b llvm::legacy::FunctionPassManagerImpl::run(llvm::Function&) + 91
16 libLLVM-3.7svn.dylib 0x0000000105664450 llvm::legacy::FunctionPassManager::run(llvm::Function&) + 48
17 clang                0x00000001037f8925 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 6315
18 clang                0x00000001038fe999 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 527
19 clang                0x00000001039744cf clang::ParseAST(clang::Sema&, bool, bool) + 384
20 clang                0x00000001038fdc67 clang::CodeGenAction::ExecuteAction() + 519
21 clang                0x00000001036ad515 clang::FrontendAction::Execute() + 67
22 clang                0x00000001036875b5 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 547
23 clang                0x00000001036587b1 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3825
24 clang                0x000000010365117c cc1_main(llvm::ArrayRef<char const*>, char const*, void*) + 940
25 clang                0x0000000103656e3e main + 8097
26 libdyld.dylib        0x00007fff878197e1 start + 0
27 libdyld.dylib        0x0000000000000071 start + 2021550224
Stack dump:
0.	Program arguments: /opt/local/libexec/llvm-3.7/bin/clang -cc1 -triple x86_64-apple-macosx10.8.0 -emit-obj -disable-free -main-file-name vf_noise.c -mrelocation-model pic -pic-level 2 -mthread-model posix -fno-signed-zeros -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 236.3 -gdwarf-2 -dwarf-column-info -coverage-file /Users/jeremy/src/ffmpeg/fate/x86_64-darwin-clang-polly-vectorize-stripmine-3.7/build/libavfilter/vf_noise.o -resource-dir /opt/local/libexec/llvm-3.7/bin/../lib/clang/3.7.0 -dependency-file libavfilter/vf_noise.d -MT libavfilter/vf_noise.o -D _ISOC99_SOURCE -D _FILE_OFFSET_BITS=64 -D _LARGEFILE_SOURCE -D PIC -D ZLIB_CONST -D HAVE_AV_CONFIG_H -D _GNU_SOURCE=1 -D _THREAD_SAFE -I . -I /Users/jeremy/src/ffmpeg/fate/x86_64-darwin-clang-polly-vectorize-stripmine-3.7/src/ -I /opt/local/include/SDL -I /opt/local/include -I /opt/local/include -I /opt/local/include -I /opt/local/include -O3 -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -std=c99 -fconst-strings -fdebug-compilation-dir /Users/jeremy/src/ffmpeg/fate/x86_64-darwin-clang-polly-vectorize-stripmine-3.7/build -ferror-limit 19 -fmessage-length 0 -pthread -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=macosx-10.8.0 -fencode-extended-block-signature -fmax-type-align=16 -fdiagnostics-show-option -vectorize-loops -vectorize-slp -load /opt/local/libexec/llvm-3.7/lib/LLVMPolly.dylib -mllvm -polly -mllvm -polly-vectorizer=polly -mllvm -polly-vectorizer=stripmine -o libavfilter/vf_noise.o -x c /Users/jeremy/src/ffmpeg/fate/x86_64-darwin-clang-polly-vectorize-stripmine-3.7/src/libavfilter/vf_noise.c 
1.	<eof> parser at end of file
2.	Per-function optimization
3.	Running pass 'Region Pass Manager' on function '@init'
4.	Running pass 'Polly - Create LLVM-IR from SCoPs' on basic block '%for.body'
clang: error: unable to execute command: Illegal instruction: 4
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.7.0 (trunk 233481)
Target: x86_64-apple-darwin12.6.0
Thread model: posix
clang: 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: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /var/folders/yk/q1qsnnm53ms89plrqm9yrqc00000gn/T/vf_noise-212f09.c
clang: note: diagnostic msg: /var/folders/yk/q1qsnnm53ms89plrqm9yrqc00000gn/T/vf_noise-212f09.sh
clang: note: diagnostic msg: 

********************
Comment 1 Jeremy Huddleston Sequoia 2015-04-04 22:04:57 PDT
Created attachment 14157 [details]
vf_noise-212f09.sh
Comment 2 Tobias Grosser 2015-04-05 01:31:18 PDT

*** This bug has been marked as a duplicate of bug 22863 ***
Comment 3 Tobias Grosser 2015-04-05 01:54:05 PDT
This was not a duplicate. It is fixed in 234113
Comment 4 Tanya Lattner 2016-01-18 17:01:59 PST
Move to Polly Product.