[llvm-bugs] [Bug 33544] New: Crash in LoadCombine/AliasSetTracker, take 2

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 21 06:06:30 PDT 2017


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

            Bug ID: 33544
           Summary: Crash in LoadCombine/AliasSetTracker, take 2
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: mikael.holmen at ericsson.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 18682
  --> https://bugs.llvm.org/attachment.cgi?id=18682&action=edit
Reproducer

opt -S -disable-basicaa -load-combine -o - reduced2.ll

gives

opt: ../lib/Analysis/AliasSetTracker.cpp:144: void
llvm::AliasSet::addPointer(llvm::AliasSetTracker &, llvm::AliasSet::PointerRec
&, uint64_t, const llvm::AAMDNodes &, bool): Assertion `*PtrListEnd == nullptr
&& "End of list is not null?"' failed.
#0 0x0000000001d2ae64 PrintStackTraceSignalHandler(void*)
(build-all/bin/opt+0x1d2ae64)
#1 0x0000000001d2b5d6 SignalHandler(int) (build-all/bin/opt+0x1d2b5d6)
#2 0x00007f9f12641330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#3 0x00007f9f11230c37 gsignal
/build/eglibc-SvCtMH/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#4 0x00007f9f11234028 abort
/build/eglibc-SvCtMH/eglibc-2.19/stdlib/abort.c:91:0
#5 0x00007f9f11229bf6 __assert_fail_base
/build/eglibc-SvCtMH/eglibc-2.19/assert/assert.c:92:0
#6 0x00007f9f11229ca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
#7 0x00000000012ba00b llvm::AliasSet::addPointer(llvm::AliasSetTracker&,
llvm::AliasSet::PointerRec&, unsigned long, llvm::AAMDNodes const&, bool)
(build-all/bin/opt+0x12ba00b)
#8 0x00000000012bafa5
llvm::AliasSetTracker::getAliasSetForPointer(llvm::Value*, unsigned long,
llvm::AAMDNodes const&) (build-all/bin/opt+0x12bafa5)
#9 0x00000000012bba61 llvm::AliasSetTracker::add(llvm::MemTransferInst*)
(build-all/bin/opt+0x12bba61)
#10 0x0000000001b795bd (anonymous
namespace)::LoadCombine::runOnBasicBlock(llvm::BasicBlock&)
(build-all/bin/opt+0x1b795bd)
#11 0x0000000001851c2a (anonymous
namespace)::BBPassManager::runOnFunction(llvm::Function&)
(build-all/bin/opt+0x1851c2a)
#12 0x000000000184c268 llvm::FPPassManager::runOnFunction(llvm::Function&)
(build-all/bin/opt+0x184c268)
#13 0x000000000184c4a8 llvm::FPPassManager::runOnModule(llvm::Module&)
(build-all/bin/opt+0x184c4a8)
#14 0x000000000184c985 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(build-all/bin/opt+0x184c985)
#15 0x00000000006da3a5 main (build-all/bin/opt+0x6da3a5)
#16 0x00007f9f1121bf45 __libc_start_main
/build/eglibc-SvCtMH/eglibc-2.19/csu/libc-start.c:321:0
#17 0x00000000006cba7b _start (build-all/bin/opt+0x6cba7b)
Stack dump:
0.      Program arguments: build-all/bin/opt -S -disable-basicaa -load-combine
-o - reduced2.ll 
1.      Running pass 'Function Pass Manager' on module 'reduced2.ll'.
2.      Running pass 'BasicBlock Pass Manager' on function '@test_spill_mixed'
3.      Running pass 'Combine Adjacent Loads' on basic block '%0'
Abort

This looks very similar to https://bugs.llvm.org//show_bug.cgi?id=31493 which
stopped happening with r294632:

    [LoadCombine] Fix combining of loads which span an aliasing store.

    Fixes PR31517

    Differential Revision: https://reviews.llvm.org/D28922


Interestingly enough, if reverting r294632 the new crash goes away.

It also goes away if reverting r299876:

    Add address space mangling to lifetime intrinsics

    In preparation for allowing allocas to have non-0 addrspace.

    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299876
91177308-0d34-0410-b5e6-96231b3b80d8

-- 
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/20170621/1bd1dc5a/attachment.html>


More information about the llvm-bugs mailing list