[llvm-bugs] [Bug 25238] New: Polly in trunk r249977: Assertion failed: (getType() == V->getType() && "All operands to PHI node must be the same type as the PHI node!"), function setIncomingValue, file include/llvm/IR/Instructions.h, line 2462.

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Oct 18 12:29:55 PDT 2015


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

            Bug ID: 25238
           Summary: Polly in trunk r249977: Assertion failed: (getType()
                    == V->getType() && "All operands to PHI node must be
                    the same type as the PHI node!"), function
                    setIncomingValue, file include/llvm/IR/Instructions.h,
                    line 2462.
           Product: Projects
           Version: unspecified
          Hardware: PC
                OS: MacOS X
            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 15096
  --> https://llvm.org/bugs/attachment.cgi?id=15096&action=edit
avf_avectorscope-b32c26.sh

Polly fails to build ffmpeg in recent llvm trunk

Assertion failed: (getType() == V->getType() && "All operands to PHI node must
be the same type as the PHI node!"), function setIncomingValue, file
/opt/local/var/macports/build/_Users_jeremy_src_macports_trunk_dports_lang_llvm-3.8/llvm-3.8/work/trunk/include/llvm/IR/Instructions.h,
line 2462.
0  libLLVM-3.8svn.dylib     0x000000010df4e01e
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 57
1  libLLVM-3.8svn.dylib     0x000000010df4db0f llvm::sys::RunSignalHandlers() +
44
2  libLLVM-3.8svn.dylib     0x000000010df4e646 SignalHandler(int) + 164
3  libsystem_platform.dylib 0x00007fff8c9205aa _sigtramp + 26
4  libsystem_platform.dylib 000000000000000000 _sigtramp + 1936587376
5  libLLVM-3.8svn.dylib     0x000000010df4e501 abort + 22
6  libLLVM-3.8svn.dylib     0x000000010df4e4eb abort + 0
7  LLVMPolly.dylib          0x000000010fc3ee27
llvm::PHINode::setIncomingValue(unsigned int, llvm::Value*) + 175
8  LLVMPolly.dylib          0x000000010fc2fc0b
llvm::PHINode::addIncoming(llvm::Value*, llvm::BasicBlock*) + 83
9  LLVMPolly.dylib          0x000000010fc425ad
IslNodeBuilder::preloadInvariantLoad(polly::MemoryAccess const&, isl_set*,
isl_ast_build*) + 1011
10 LLVMPolly.dylib          0x000000010fc427f6
IslNodeBuilder::preloadInvariantLoads() + 380
11 LLVMPolly.dylib          0x000000010fc35c36 (anonymous
namespace)::CodeGeneration::runOnScop(polly::Scop&) + 504
12 LLVMPolly.dylib          0x000000010fc296e3
polly::ScopPass::runOnRegion(llvm::Region*, llvm::RGPassManager&) + 47
13 libLLVM-3.8svn.dylib     0x000000010d3e1063
llvm::RGPassManager::runOnFunction(llvm::Function&) + 749
14 libLLVM-3.8svn.dylib     0x000000010d7ab146
llvm::FPPassManager::runOnFunction(llvm::Function&) + 286
15 libLLVM-3.8svn.dylib     0x000000010d7aac61
llvm::legacy::FunctionPassManagerImpl::run(llvm::Function&) + 91
16 libLLVM-3.8svn.dylib     0x000000010d7aab96
llvm::legacy::FunctionPassManager::run(llvm::Function&) + 48
17 clang                    0x000000010b7980b6
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_pwrite_stream*)
+ 6362
18 clang                    0x000000010b8ca1ef
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 581
19 clang                    0x000000010b9592bd clang::ParseAST(clang::Sema&,
bool, bool) + 490
20 clang                    0x000000010b8c947b
clang::CodeGenAction::ExecuteAction() + 563
21 clang                    0x000000010b635bf1 clang::FrontendAction::Execute()
+ 75
22 clang                    0x000000010b60bb25
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 757
23 clang                    0x000000010b5df600
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3804
24 clang                    0x000000010b5d7208 cc1_main(llvm::ArrayRef<char
const*>, char const*, void*) + 1320
25 clang                    0x000000010b5ddc30 main + 8651
26 libdyld.dylib            0x00007fff8ec8e5fd start + 1
27 libdyld.dylib            0x000000000000006b start + 1899436655
Stack dump:
0.    Program arguments: /opt/local/libexec/llvm-3.8/bin/clang -cc1 -triple
i386-apple-macosx10.9.0 -emit-obj -disable-free -main-file-name
avf_avectorscope.c -mrelocation-model dynamic-no-pic -mthread-model posix
-fno-signed-zeros -masm-verbose -target-cpu yonah -target-linker-version 242.2
-dwarf-column-info -debug-info-kind=standalone -dwarf-version=2 -coverage-file
/Users/jeremy/src/ffmpeg/fate/i386-darwin-clang-polly-3.8/build/libavfilter/avf_avectorscope.o
-resource-dir /opt/local/libexec/llvm-3.8/bin/../lib/clang/3.8.0
-dependency-file libavfilter/avf_avectorscope.d -MT
libavfilter/avf_avectorscope.o -I . -I
/Users/jeremy/src/ffmpeg/fate/i386-darwin-clang-polly-3.8/src/ -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 /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/i386-darwin-clang-polly-3.8/build -ferror-limit
19 -fmessage-length 0 -pthread -stack-protector 1 -fblocks
-fobjc-runtime=macosx-fragile-10.9.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.8/lib/LLVMPolly.dylib -mllvm -polly -o
libavfilter/avf_avectorscope.o -x c
/Users/jeremy/src/ffmpeg/fate/i386-darwin-clang-polly-3.8/src/libavfilter/avf_avectorscope.c 
1.    <eof> parser at end of file
2.    Per-function optimization
3.    Running pass 'Region Pass Manager' on function '@fade'
4.    Running pass 'Polly - Create LLVM-IR from SCoPs' on basic block
'%if.then'
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 249977)
Target: i386-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/avf_avectorscope-b32c26.c
clang: note: diagnostic msg:
/var/folders/kd/lg174pm94bz417bmp5vv57j80000gn/T/avf_avectorscope-b32c26.sh
clang: 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/20151018/369fa603/attachment.html>


More information about the llvm-bugs mailing list