<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - "Assertion `Val != nullptr && Val->getType()->isPointerTy()' failed." with -cfl-anders-aa -dse"
href="https://bugs.llvm.org/show_bug.cgi?id=37335">37335</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>"Assertion `Val != nullptr && Val->getType()->isPointerTy()' failed." with -cfl-anders-aa -dse
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mikael.holmen@ericsson.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=20263" name="attach_20263" title="reproducer">attachment 20263</a> <a href="attachment.cgi?id=20263&action=edit" title="reproducer">[details]</a></span>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>