[llvm-bugs] [Bug 25428] New: Polly in trunk r251899: Assertion failed: (castIsValid(op, S, Ty) && "Invalid cast!"), function Create, file lib/IR/Instructions.cpp, line 2619.

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Nov 6 01:46:20 PST 2015


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

            Bug ID: 25428
           Summary: Polly in trunk r251899: Assertion failed:
                    (castIsValid(op, S, Ty) && "Invalid cast!"), function
                    Create, file lib/IR/Instructions.cpp, line 2619.
           Product: Projects
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Polly
          Assignee: polly-dev at googlegroups.com
          Reporter: jeremyhu at apple.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15231
  --> https://llvm.org/bugs/attachment.cgi?id=15231&action=edit
celp_filters-a9edf2.c.bz2

Building recent ffmpeg trunk with recent llvm trunk fails with polly:

Assertion failed: (castIsValid(op, S, Ty) && "Invalid cast!"), function Create,
file
/opt/local/var/macports/build/_Users_jeremy_src_macports_trunk_dports_lang_llvm-3.8/llvm-3.8/work/trunk/lib/IR/Instructions.cpp,
line 2619.
0  libLLVM-3.8svn.dylib     0x0000000108691c8e
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 57
1  libLLVM-3.8svn.dylib     0x000000010869177f llvm::sys::RunSignalHandlers() +
44
2  libLLVM-3.8svn.dylib     0x00000001086922b6 SignalHandler(int) + 164
3  libsystem_platform.dylib 0x00007fff912985aa _sigtramp + 26
4  libsystem_platform.dylib 000000000000000000 _sigtramp + 1859549808
5  libLLVM-3.8svn.dylib     0x0000000108692171 abort + 22
6  libLLVM-3.8svn.dylib     0x000000010869215b abort + 0
7  libLLVM-3.8svn.dylib     0x0000000107eab324
llvm::CastInst::Create(llvm::Instruction::CastOps, llvm::Value*, llvm::Type*,
llvm::Twine const&, llvm::Instruction*) + 696
8  LLVMPolly.dylib          0x000000010a40e128 llvm::IRBuilder<true,
llvm::ConstantFolder, polly::PollyBuilderInserter<true>
>::CreateCast(llvm::Instruction::CastOps, llvm::Value*, llvm::Type*,
llvm::Twine const&) + 88
9  LLVMPolly.dylib          0x000000010a420181
IslNodeBuilder::preloadUnconditionally(isl_set*, isl_ast_build*, llvm::Type*) +
121
10 LLVMPolly.dylib          0x000000010a4204c5
IslNodeBuilder::preloadInvariantLoad(polly::MemoryAccess const&, isl_set*) +
823
11 LLVMPolly.dylib          0x000000010a41fa77
IslNodeBuilder::preloadInvariantEquivClass(std::__1::tuple<llvm::SCEV const*,
std::__1::forward_list<polly::MemoryAccess*,
std::__1::allocator<polly::MemoryAccess*> >, isl_set*> const&) + 295
12 LLVMPolly.dylib          0x000000010a420719
IslNodeBuilder::preloadInvariantLoads() + 149
13 LLVMPolly.dylib          0x000000010a413c1c (anonymous
namespace)::CodeGeneration::runOnScop(polly::Scop&) + 504
14 LLVMPolly.dylib          0x000000010a40702d
polly::ScopPass::runOnRegion(llvm::Region*, llvm::RGPassManager&) + 47
15 libLLVM-3.8svn.dylib     0x0000000107aeb273
llvm::RGPassManager::runOnFunction(llvm::Function&) + 749
16 libLLVM-3.8svn.dylib     0x0000000107ec1222
llvm::FPPassManager::runOnFunction(llvm::Function&) + 286
17 libLLVM-3.8svn.dylib     0x0000000107ec13bf
llvm::FPPassManager::runOnModule(llvm::Module&) + 41
18 libLLVM-3.8svn.dylib     0x0000000107ec1704
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 630
19 clang                    0x0000000105e7a9b7
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_pwrite_stream*)
+ 6731
20 clang                    0x0000000105fade45
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 571
21 clang                    0x000000010603d57d clang::ParseAST(clang::Sema&,
bool, bool) + 490
22 clang                    0x0000000105fad112
clang::CodeGenAction::ExecuteAction() + 566
23 clang                    0x0000000105d13397 clang::FrontendAction::Execute()
+ 75
24 clang                    0x0000000105ce7943
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 757
25 clang                    0x0000000105cbb1fc
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3804
26 clang                    0x0000000105cb2d68 cc1_main(llvm::ArrayRef<char
const*>, char const*, void*) + 1320
27 clang                    0x0000000105cb979a main + 8651
28 libdyld.dylib            0x00007fff990b85fd start + 1
29 libdyld.dylib            0x0000000000000071 start + 1727298165
Stack dump:
0.    Program arguments: /opt/local/libexec/llvm-3.8/bin/clang -cc1 -triple
x86_64-apple-macosx10.9.0 -Wdeprecated-objc-isa-usage
-Werror=deprecated-objc-isa-usage -emit-obj -disable-free -main-file-name
celp_filters.c -mrelocation-model pic -pic-level 2 -mthread-model posix
-fno-signed-zeros -masm-verbose -munwind-tables -target-cpu core2
-target-linker-version 253.3 -dwarf-column-info -debug-info-kind=standalone
-dwarf-version=2 -coverage-file
/Users/jeremy/src/ffmpeg/fate/x86_64-darwin-clang-polly-3.8/build/libavcodec/celp_filters.o
-resource-dir /opt/local/libexec/llvm-3.8/bin/../lib/clang/3.8.0
-dependency-file libavcodec/celp_filters.d -MT libavcodec/celp_filters.o -I .
-I /Users/jeremy/src/ffmpeg/fate/x86_64-darwin-clang-polly-3.8/src/ -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
/opt/local/include/SDL -I /opt/local/include -I /opt/local/include -I
/opt/local/include -I /opt/local/include -O3 -Wno-deprecated -Wno-unused
-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-3.8/build -ferror-limit
19 -fmessage-length 0 -pthread -stack-protector 1 -fblocks
-fobjc-runtime=macosx-10.9.0 -fencode-extended-block-signature
-fmax-type-align=16 -fdiagnostics-show-option -vectorize-loops -vectorize-slp
-load /opt/local/libexec/llvm-3.8/lib/LLVMPolly.dylib -mllvm -polly -o
libavcodec/celp_filters.o -x c
/Users/jeremy/src/ffmpeg/fate/x86_64-darwin-clang-polly-3.8/src/libavcodec/celp_filters.c 
1.    <eof> parser at end of file
2.    Per-module optimization passes
3.    Running pass 'Function Pass Manager' on module
'/Users/jeremy/src/ffmpeg/fate/x86_64-darwin-clang-polly-3.8/src/libavcodec/celp_filters.c'.
4.    Running pass 'Region Pass Manager' on function
'@ff_celp_lp_synthesis_filterf'
5.    Running pass 'Polly - Create LLVM-IR from SCoPs' on basic block
'%entry.split'
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.8.0 (trunk 251899)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
InstalledDir: /opt/local/libexec/llvm-3.8/bin
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/kd/lg174pm94bz417bmp5vv57j80000gn/T/celp_filters-a9edf2.c
clang: note: diagnostic msg:
/var/folders/kd/lg174pm94bz417bmp5vv57j80000gn/T/celp_filters-a9edf2.sh
clang: note: diagnostic msg: 

********************
make: *** [libavcodec/celp_filters.o] Error 254

-- 
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/20151106/b7488791/attachment-0001.html>


More information about the llvm-bugs mailing list