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 23124 - polly in trunk r233481: Assertion failed: (S1->getType() == S2->getType() && "Cannot create binary operator with two operands of differing type!"
Summary: polly in trunk r233481: Assertion failed: (S1->getType() == S2->getType() && ...
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 21:58 PDT by Jeremy Huddleston Sequoia
Modified: 2016-01-18 17:00 PST (History)
2 users (show)

See Also:
Fixed By Commit(s):


Attachments
vf_boxblur-159eea.sh (3.34 KB, text/plain)
2015-04-04 21:58 PDT, Jeremy Huddleston Sequoia
Details
vf_boxblur-159eea.c.bz2 (222.91 KB, application/x-bzip2)
2015-04-04 21:59 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 21:58:07 PDT
Assertion failed: (S1->getType() == S2->getType() && "Cannot create binary operator with two operands of differing type!"), function Create, file Instructions.cpp, line 1739.
0  libLLVM-3.7svn.dylib 0x000000010d5fa312 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 57
1  libLLVM-3.7svn.dylib 0x000000010d5fa960 SignalHandler(int) + 220
2  libsystem_c.dylib    0x00007fff892d390a _sigtramp + 26
3  libsystem_c.dylib    0x0000000000000003 _sigtramp + 1993525011
4  libLLVM-3.7svn.dylib 0x000000010d5fa7e3 abort + 22
5  libLLVM-3.7svn.dylib 0x000000010d5fa7cd abort + 0
6  libLLVM-3.7svn.dylib 0x000000010cecc636 llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::BasicBlock*) + 0
7  LLVMPolly.dylib      0x000000010f19870f llvm::IRBuilder<true, llvm::ConstantFolder, polly::PollyBuilderInserter<true> >::CreateInsertNUWNSWBinOp(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, llvm::Twine const&, bool, bool) + 67
8  LLVMPolly.dylib      0x000000010f19c2da llvm::IRBuilder<true, llvm::ConstantFolder, polly::PollyBuilderInserter<true> >::CreateMul(llvm::Value*, llvm::Value*, llvm::Twine const&, bool, bool) + 80
9  LLVMPolly.dylib      0x000000010f19a624 polly::IslExprBuilder::createAccessAddress(isl_ast_expr*) + 368
10 LLVMPolly.dylib      0x000000010f19bd5a polly::IslExprBuilder::createOpAddressOf(isl_ast_expr*) + 90
11 LLVMPolly.dylib      0x000000010f19b276 polly::IslExprBuilder::createOpICmp(isl_ast_expr*) + 90
12 LLVMPolly.dylib      0x000000010f19b5ca polly::IslExprBuilder::createOpBoolean(isl_ast_expr*) + 84
13 LLVMPolly.dylib      0x000000010f19b5ec polly::IslExprBuilder::createOpBoolean(isl_ast_expr*) + 118
14 LLVMPolly.dylib      0x000000010f19b5ca polly::IslExprBuilder::createOpBoolean(isl_ast_expr*) + 84
15 LLVMPolly.dylib      0x000000010f19b5ca polly::IslExprBuilder::createOpBoolean(isl_ast_expr*) + 84
16 LLVMPolly.dylib      0x000000010f19700d (anonymous namespace)::IslCodeGeneration::runOnScop(polly::Scop&) + 465
17 LLVMPolly.dylib      0x000000010f184627 polly::ScopPass::runOnRegion(llvm::Region*, llvm::RGPassManager&) + 47
18 libLLVM-3.7svn.dylib 0x000000010cb7b0ff llvm::RGPassManager::runOnFunction(llvm::Function&) + 749
19 libLLVM-3.7svn.dylib 0x000000010cee3a23 llvm::FPPassManager::runOnFunction(llvm::Function&) + 297
20 libLLVM-3.7svn.dylib 0x000000010cee351b llvm::legacy::FunctionPassManagerImpl::run(llvm::Function&) + 91
21 libLLVM-3.7svn.dylib 0x000000010cee3450 llvm::legacy::FunctionPassManager::run(llvm::Function&) + 48
22 clang                0x000000010b077925 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 6315
23 clang                0x000000010b17d999 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 527
24 clang                0x000000010b1f34cf clang::ParseAST(clang::Sema&, bool, bool) + 384
25 clang                0x000000010b17cc67 clang::CodeGenAction::ExecuteAction() + 519
26 clang                0x000000010af2c515 clang::FrontendAction::Execute() + 67
27 clang                0x000000010af065b5 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 547
28 clang                0x000000010aed77b1 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3825
29 clang                0x000000010aed017c cc1_main(llvm::ArrayRef<char const*>, char const*, void*) + 940
30 clang                0x000000010aed5e3e main + 8097
31 libdyld.dylib        0x00007fff878197e1 start + 0
32 libdyld.dylib        0x0000000000000069 start + 2021550216
Stack dump:
0.	Program arguments: /opt/local/libexec/llvm-3.7/bin/clang -cc1 -triple i386-apple-macosx10.8.0 -emit-obj -disable-free -main-file-name vf_boxblur.c -mrelocation-model dynamic-no-pic -mthread-model posix -fno-signed-zeros -masm-verbose -target-cpu yonah -target-linker-version 236.3 -gdwarf-2 -dwarf-column-info -coverage-file /Users/jeremy/src/ffmpeg/fate/i386-darwin-clang-polly-3.7/build/libavfilter/vf_boxblur.o -resource-dir /opt/local/libexec/llvm-3.7/bin/../lib/clang/3.7.0 -dependency-file libavfilter/vf_boxblur.d -MT libavfilter/vf_boxblur.o -D _ISOC99_SOURCE -D _FILE_OFFSET_BITS=64 -D _LARGEFILE_SOURCE -D ZLIB_CONST -D HAVE_AV_CONFIG_H -D _GNU_SOURCE=1 -D _THREAD_SAFE -I . -I /Users/jeremy/src/ffmpeg/fate/i386-darwin-clang-polly-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/i386-darwin-clang-polly-3.7/build -ferror-limit 19 -fmessage-length 0 -pthread -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=macosx-fragile-10.8.0 -fobjc-subscripting-legacy-runtime -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 -o libavfilter/vf_boxblur.o -x c /Users/jeremy/src/ffmpeg/fate/i386-darwin-clang-polly-3.7/src/libavfilter/vf_boxblur.c 
1.	<eof> parser at end of file
2.	Per-function optimization
3.	Running pass 'Region Pass Manager' on function '@blur16'
4.	Running pass 'Polly - Create LLVM-IR from SCoPs' on basic block '%polly.split_new_and_old'
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: i386-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_boxblur-159eea.c
clang: note: diagnostic msg: /var/folders/yk/q1qsnnm53ms89plrqm9yrqc00000gn/T/vf_boxblur-159eea.sh
clang: note: diagnostic msg: 

********************
Comment 1 Jeremy Huddleston Sequoia 2015-04-04 21:58:38 PDT
Created attachment 14150 [details]
vf_boxblur-159eea.sh
Comment 2 Jeremy Huddleston Sequoia 2015-04-04 21:59:11 PDT
Created attachment 14151 [details]
vf_boxblur-159eea.c.bz2
Comment 3 Tobias Grosser 2015-04-05 12:37:27 PDT
Fixed in r234122.
Comment 4 Tanya Lattner 2016-01-18 17:00:23 PST
Move to Polly Product.