[llvm-bugs] [Bug 27048] New: IR: trunk (r262722 and r264140): Assertion failed: (LoadPtrType->getPointerAddressSpace() == StorePtr->getType()->getPointerAddressSpace() && LoadType == StorePtr->getType()->getPointerElementType() && "Should be a known dependence"

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Mar 24 00:40:32 PDT 2016


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

            Bug ID: 27048
           Summary: IR: trunk (r262722 and r264140): Assertion failed:
                    (LoadPtrType->getPointerAddressSpace() ==
                    StorePtr->getType()->getPointerAddressSpace() &&
                    LoadType ==
                    StorePtr->getType()->getPointerElementType() &&
                    "Should be a known dependence"
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Core LLVM classes
          Assignee: unassignedbugs at nondot.org
          Reporter: jeremyhu at apple.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Recent trunk (r262722 and r264140 affected) fail to compile recent ffmpeg with
failure:

Assertion failed: (LoadPtrType->getPointerAddressSpace() ==
StorePtr->getType()->getPointerAddressSpace() && LoadType ==
StorePtr->getType()->getPointerElementType() && "Should be a known
dependence"), function isDependenceDistanceOfOne, file
/opt/local/var/macports/build/_Users_jeremy_src_macports_trunk_dports_lang_llvm-3.9/llvm-3.9/work/trunk/lib/Transforms/Scalar/LoopLoadElimination.cpp,
line 75.
0  libLLVM.dylib            0x000000010ea3833e
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 43
1  libLLVM.dylib            0x000000010ea37c87 llvm::sys::RunSignalHandlers() +
44
2  libLLVM.dylib            0x000000010ea387ae SignalHandler(int) + 164
3  libsystem_platform.dylib 0x00007fff9730ef1a _sigtramp + 26
4  libsystem_platform.dylib 000000000000000000 _sigtramp + 1758400768
5  libsystem_c.dylib        0x00007fff967379ab abort + 129
6  libsystem_c.dylib        0x00007fff966ffa91 basename + 0
7  libLLVM.dylib            0x000000010f0881fb (anonymous
namespace)::StoreToLoadForwardingCandidate::isDependenceDistanceOfOne(llvm::PredicatedScalarEvolution&,
llvm::Loop*) const + 663
8  libLLVM.dylib            0x000000010f086852 (anonymous
namespace)::LoopLoadElimination::runOnFunction(llvm::Function&) + 2292
9  libLLVM.dylib            0x000000010eaddb01
llvm::FPPassManager::runOnFunction(llvm::Function&) + 297
10 libLLVM.dylib            0x000000010eaddca5
llvm::FPPassManager::runOnModule(llvm::Module&) + 41
11 libLLVM.dylib            0x000000010eaddfe3
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 617
12 clang                    0x000000010cf0ff04
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::DataLayout const&, llvm::Module*, clang::BackendAction,
llvm::raw_pwrite_stream*) + 7820
13 clang                    0x000000010d0514e4
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 500
14 clang                    0x000000010d35cbdc clang::ParseAST(clang::Sema&,
bool, bool) + 507
15 clang                    0x000000010d1b5737 clang::FrontendAction::Execute()
+ 75
16 clang                    0x000000010d186cdd
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 749
17 clang                    0x000000010d1e4d86
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 4314
18 clang                    0x000000010ceaa4bf cc1_main(llvm::ArrayRef<char
const*>, char const*, void*) + 1399
19 clang                    0x000000010cea9516 main + 8539
20 libdyld.dylib            0x00007fff8a7595c9 start + 1
21 libdyld.dylib            0x000000000000006f start + 1972005543
Stack dump:
0.    Program arguments: /opt/local/libexec/llvm-3.9/bin/clang -cc1 -triple
x86_64-apple-macosx10.10.0 -Wdeprecated-objc-isa-usage
-Werror=deprecated-objc-isa-usage -emit-obj -disable-free -main-file-name imc.c
-mrelocation-model pic -pic-level 2 -mthread-model posix -fno-signed-zeros
-masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 253.9
-dwarf-column-info -debug-info-kind=standalone -dwarf-version=2
-debugger-tuning=lldb -coverage-file
/Users/jeremy/src/ffmpeg/fate/x86_64-darwin-clang-3.9/build/libavcodec/imc.o
-resource-dir /opt/local/libexec/llvm-3.9/bin/../lib/clang/3.9.0
-dependency-file libavcodec/imc.d -MT libavcodec/imc.o -I . -I 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
-Wno-unused-const-variable -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-3.9/build -ferror-limit 19
-fmessage-length 0 -pthread -stack-protector 1 -fblocks
-fobjc-runtime=macosx-10.10.0 -fencode-extended-block-signature
-fmax-type-align=16 -fdiagnostics-show-option -vectorize-loops -vectorize-slp
-o libavcodec/imc.o -x c src/libavcodec/imc.c 
1.    <eof> parser at end of file
2.    Per-module optimization passes
3.    Running pass 'Function Pass Manager' on module 'src/libavcodec/imc.c'.
4.    Running pass 'Loop Load Elimination' on function '@imc_decode_frame'
clang: error: unable to execute command: Abort trap: 6
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.9.0 (trunk 264140)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
InstalledDir: /opt/local/libexec/llvm-3.9/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/9_/cfz9b4j15dq4rjp_dhcfqq4h0000gn/T/imc-26e398.c
clang: note: diagnostic msg:
/var/folders/9_/cfz9b4j15dq4rjp_dhcfqq4h0000gn/T/imc-26e398.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/20160324/5f62a661/attachment-0001.html>


More information about the llvm-bugs mailing list