[llvm-bugs] [Bug 37335] New: "Assertion `Val != nullptr && Val->getType()->isPointerTy()' failed." with -cfl-anders-aa -dse

via llvm-bugs llvm-bugs at lists.llvm.org
Fri May 4 00:36:14 PDT 2018


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

            Bug ID: 37335
           Summary: "Assertion `Val != nullptr &&
                    Val->getType()->isPointerTy()' failed." with
                    -cfl-anders-aa -dse
           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 20263
  --> https://bugs.llvm.org/attachment.cgi?id=20263&action=edit
reproducer

opt -S -cfl-anders-aa -dse -o - tr15970.ll

gives

opt: ../lib/Analysis/CFLGraph.h:208: void
llvm::cflaa::CFLGraphBuilder<llvm::CFLAndersAAResult>::GetEdgesVisitor::addNode(llvm::Value
*, AliasAttrs) [CFLAA = llvm::CFLAndersAAResult]: Assertion `Val != nullptr &&
Val->getType()->isPointerTy()' failed.
Stack dump:
0.      Program arguments: ../llvm-patch/build-all/bin/opt -S -cfl-anders-aa
-dse -o - tr15970.ll 
1.      Running pass 'Function Pass Manager' on module 'tr15970.ll'.
2.      Running pass 'Dead Store Elimination' on function '@f2'
#0 0x0000000001f68bf4 PrintStackTraceSignalHandler(void*)
(../llvm-patch/build-all/bin/opt+0x1f68bf4)
#1 0x0000000001f69366 SignalHandler(int)
(../llvm-patch/build-all/bin/opt+0x1f69366)
#2 0x00007ffbe637b330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#3 0x00007ffbe4f6ac37 gsignal
/build/eglibc-ripdx6/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#4 0x00007ffbe4f6e028 abort
/build/eglibc-ripdx6/eglibc-2.19/stdlib/abort.c:91:0
#5 0x00007ffbe4f63bf6 __assert_fail_base
/build/eglibc-ripdx6/eglibc-2.19/assert/assert.c:92:0
#6 0x00007ffbe4f63ca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
#7 0x00000000014213b6 (../llvm-patch/build-all/bin/opt+0x14213b6)
#8 0x0000000001420095
llvm::cflaa::CFLGraphBuilder<llvm::CFLAndersAAResult>::buildGraphFrom(llvm::Function&)
(../llvm-patch/build-all/bin/opt+0x1420095)
#9 0x000000000141afa8 llvm::CFLAndersAAResult::buildInfoFrom(llvm::Function
const&) (../llvm-patch/build-all/bin/opt+0x141afa8)
#10 0x000000000141e2a0 llvm::CFLAndersAAResult::scan(llvm::Function const&)
(../llvm-patch/build-all/bin/opt+0x141e2a0)
#11 0x000000000141e766 llvm::CFLAndersAAResult::ensureCached(llvm::Function
const&) (../llvm-patch/build-all/bin/opt+0x141e766)
#12 0x000000000141e9a3 llvm::CFLAndersAAResult::query(llvm::MemoryLocation
const&, llvm::MemoryLocation const&)
(../llvm-patch/build-all/bin/opt+0x141e9a3)
#13 0x00000000013db8bf llvm::AAResults::alias(llvm::MemoryLocation const&,
llvm::MemoryLocation const&) (../llvm-patch/build-all/bin/opt+0x13db8bf)
#14 0x00000000013f37f4 llvm::BasicAAResult::aliasCheck(llvm::Value const*,
unsigned long, llvm::AAMDNodes, llvm::Value const*, unsigned long,
llvm::AAMDNodes, llvm::Value const*, llvm::Value const*)
(../llvm-patch/build-all/bin/opt+0x13f37f4)
#15 0x00000000013f2ca0 llvm::BasicAAResult::alias(llvm::MemoryLocation const&,
llvm::MemoryLocation const&) (../llvm-patch/build-all/bin/opt+0x13f2ca0)
#16 0x00000000013db8bf llvm::AAResults::alias(llvm::MemoryLocation const&,
llvm::MemoryLocation const&) (../llvm-patch/build-all/bin/opt+0x13db8bf)
#17 0x00000000014e4270
llvm::MemoryDependenceResults::getSimplePointerDependencyFrom(llvm::MemoryLocation
const&, bool,
llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction, true,
false, void>, false, false>, llvm::BasicBlock*, llvm::Instruction*, unsigned
int*) (../llvm-patch/build-all/bin/opt+0x14e4270)
#18 0x00000000014e3f9e
llvm::MemoryDependenceResults::getSimplePointerDependencyFrom(llvm::MemoryLocation
const&, bool,
llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction, true,
false, void>, false, false>, llvm::BasicBlock*, llvm::Instruction*, unsigned
int*) (../llvm-patch/build-all/bin/opt+0x14e3f9e)
#19 0x00000000014e4bb3
llvm::MemoryDependenceResults::getDependency(llvm::Instruction*)
(../llvm-patch/build-all/bin/opt+0x14e4bb3)
#20 0x0000000001d12812 eliminateDeadStores(llvm::BasicBlock&, llvm::AAResults*,
llvm::MemoryDependenceResults*, llvm::DominatorTree*, llvm::TargetLibraryInfo
const*) (../llvm-patch/build-all/bin/opt+0x1d12812)
#21 0x0000000001d12346 (anonymous
namespace)::DSELegacyPass::runOnFunction(llvm::Function&)
(../llvm-patch/build-all/bin/opt+0x1d12346)
#22 0x0000000001a0e298 llvm::FPPassManager::runOnFunction(llvm::Function&)
(../llvm-patch/build-all/bin/opt+0x1a0e298)
#23 0x0000000001a0e4d8 llvm::FPPassManager::runOnModule(llvm::Module&)
(../llvm-patch/build-all/bin/opt+0x1a0e4d8)
#24 0x0000000001a0e9b5 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(../llvm-patch/build-all/bin/opt+0x1a0e9b5)
#25 0x0000000000738b35 main (../llvm-patch/build-all/bin/opt+0x738b35)
#26 0x00007ffbe4f55f45 __libc_start_main
/build/eglibc-ripdx6/eglibc-2.19/csu/libc-start.c:321:0
#27 0x00000000007225fd _start (../llvm-patch/build-all/bin/opt+0x7225fd)
Abort

This seems to be old, I've seen it already on binaries from november 2016.

-- 
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/20180504/1f5dfcad/attachment.html>


More information about the llvm-bugs mailing list