<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 - [SimplifyCFG] Assertion `PN->use_empty() && "There shouldn't be any uses here!"' failed."
href="https://bugs.llvm.org/show_bug.cgi?id=38480">38480</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[SimplifyCFG] Assertion `PN->use_empty() && "There shouldn't be any uses here!"' failed.
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>Scalar Optimizations
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>karl-johan.karlsson@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=20655" name="attach_20655" title="opt -S -simplifycfg ./simplifycfg_crash.ll">attachment 20655</a> <a href="attachment.cgi?id=20655&action=edit" title="opt -S -simplifycfg ./simplifycfg_crash.ll">[details]</a></span>
opt -S -simplifycfg ./simplifycfg_crash.ll
$ ./opt -S -simplifycfg ./simplifycfg_crash.ll
opt: ../lib/Transforms/Utils/Local.cpp:1027: bool
llvm::TryToSimplifyUncondBranchFromEmptyBlock(llvm::BasicBlock *,
llvm::DomTreeUpdater *): Assertion `PN->use_empty() && "There shouldn't be any
uses here!"' failed.
Stack dump:
0. Program arguments: ./opt -S -simplifycfg ./simplifycfg_crash.ll
1. Running pass 'Function Pass Manager' on module
'./simplifycfg_crash.ll'.
2. Running pass 'Simplify the CFG' on function '@f1'
#0 0x000000000208ab14 PrintStackTraceSignalHandler(void*) (./opt+0x208ab14)
#1 0x0000000002088c70 llvm::sys::RunSignalHandlers() (./opt+0x2088c70)
#2 0x000000000208ae78 SignalHandler(int) (./opt+0x208ae78)
#3 0x00007fe6a136b330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#4 0x00007fe69ff5ac37 gsignal
/build/eglibc-ripdx6/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#5 0x00007fe69ff5e028 abort
/build/eglibc-ripdx6/eglibc-2.19/stdlib/abort.c:91:0
#6 0x00007fe69ff53bf6 __assert_fail_base
/build/eglibc-ripdx6/eglibc-2.19/assert/assert.c:92:0
#7 0x00007fe69ff53ca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
#8 0x00000000020f39ff
llvm::TryToSimplifyUncondBranchFromEmptyBlock(llvm::BasicBlock*,
llvm::DomTreeUpdater*) (./opt+0x20f39ff)
#9 0x0000000002153075 (anonymous
namespace)::SimplifyCFGOpt::run(llvm::BasicBlock*) (./opt+0x2153075)
#10 0x000000000215cc89 (anonymous
namespace)::SimplifyCFGOpt::SimplifyCondBranch(llvm::BranchInst*,
llvm::IRBuilder<llvm::ConstantFolder, llvm::IRBuilderDefaultInserter>&)
(./opt+0x215cc89)
#11 0x0000000002153000 (anonymous
namespace)::SimplifyCFGOpt::run(llvm::BasicBlock*) (./opt+0x2153000)
#12 0x0000000002161d4a (anonymous
namespace)::SimplifyCFGOpt::SimplifySwitch(llvm::SwitchInst*,
llvm::IRBuilder<llvm::ConstantFolder, llvm::IRBuilderDefaultInserter>&)
(./opt+0x2161d4a)
#13 0x0000000002153193 (anonymous
namespace)::SimplifyCFGOpt::run(llvm::BasicBlock*) (./opt+0x2153193)
#14 0x0000000002151b25 llvm::simplifyCFG(llvm::BasicBlock*,
llvm::TargetTransformInfo const&, llvm::SimplifyCFGOptions const&,
llvm::SmallPtrSetImpl<llvm::BasicBlock*>*) (./opt+0x2151b25)
#15 0x0000000001fd1404 iterativelySimplifyCFG(llvm::Function&,
llvm::TargetTransformInfo const&, llvm::SimplifyCFGOptions const&)
(./opt+0x1fd1404)
#16 0x0000000001fd0ab6 simplifyFunctionCFG(llvm::Function&,
llvm::TargetTransformInfo const&, llvm::SimplifyCFGOptions const&)
(./opt+0x1fd0ab6)
#17 0x0000000001fd11cf (anonymous
namespace)::CFGSimplifyPass::runOnFunction(llvm::Function&) (./opt+0x1fd11cf)
#18 0x0000000001afd9b3 llvm::FPPassManager::runOnFunction(llvm::Function&)
(./opt+0x1afd9b3)
#19 0x0000000001afdbc8 llvm::FPPassManager::runOnModule(llvm::Module&)
(./opt+0x1afdbc8)
#20 0x0000000001afe07a llvm::legacy::PassManagerImpl::run(llvm::Module&)
(./opt+0x1afe07a)
#21 0x000000000075d414 main (./opt+0x75d414)
#22 0x00007fe69ff45f45 __libc_start_main
/build/eglibc-ripdx6/eglibc-2.19/csu/libc-start.c:321:0
#23 0x0000000000745b5d _start (./opt+0x745b5d)
Aborted (core dumped)</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>