<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 - [Inliner] Assertion "Referenced value not in value map!" failed."
href="https://bugs.llvm.org/show_bug.cgi?id=49065">49065</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[Inliner] Assertion "Referenced value not in value map!" 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>normal
</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>paulsson@linux.vnet.ibm.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=24486" name="attach_24486" title="reduced testcase">attachment 24486</a> <a href="attachment.cgi?id=24486&action=edit" title="reduced testcase">[details]</a></span>
reduced testcase
First bad commit: 1742203 "[SimplifyCFG] FoldBranchToCommonDest(): re-lift
restrictions on liveout uses of bonus instructions"
opt -mtriple=s390x-unknown-linux -mcpu=arch13 -o out.opt.ll -O3 -S
-bonus-inst-threshold=2 -disable-basic-aa tc.ll
#6 0x000003ffbbec08b2 __assert_fail_base
/build/glibc-8Bkpa0/glibc-2.30/assert/assert.c:89:7
#7 0x000003ffbbec0926 (/lib/s390x-linux-gnu/libc.so.6+0x40926)
#8 0x000002aa3f3c25f0 (anonymous
namespace)::Mapper::remapInstruction(llvm::Instruction*) (./bin/opt+0x1a425f0)
#9 0x000002aa3f3c418e llvm::ValueMapper::remapInstruction(llvm::Instruction&)
(./bin/opt+0x1a4418e)
#10 0x000002aa3f2549aa (anonymous
namespace)::PruningFunctionCloner::CloneBlock(llvm::BasicBlock const*,
llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction, true,
false, void>, false, true>, std::vector<llvm::BasicBlock const*,
std::allocator<llvm::BasicBlock const*> >&) (./bin/opt+0x18d49aa)
#11 0x000002aa3f255c00 llvm::CloneAndPruneIntoFromInst(llvm::Function*,
llvm::Function const*, llvm::Instruction const*, llvm::ValueMap<llvm::Value
const*, llvm::WeakTrackingVH, llvm::ValueMapConfig<llvm::Value const*,
llvm::sys::SmartMutex<false> > >&, bool,
llvm::SmallVectorImpl<llvm::ReturnInst*>&, char const*, llvm::ClonedCodeInfo*)
(./bin/opt+0x18d5c00)
#12 0x000002aa3f2576e6 llvm::CloneAndPruneFunctionInto(llvm::Function*,
llvm::Function const*, llvm::ValueMap<llvm::Value const*, llvm::WeakTrackingVH,
llvm::ValueMapConfig<llvm::Value const*, llvm::sys::SmartMutex<false> > >&,
bool, llvm::SmallVectorImpl<llvm::ReturnInst*>&, char const*,
llvm::ClonedCodeInfo*, llvm::Instruction*) (./bin/opt+0x18d76e6)
#13 0x000002aa3f2a7400 llvm::InlineFunction(llvm::CallBase&,
llvm::InlineFunctionInfo&, llvm::AAResults*, bool, llvm::Function*)
(./bin/opt+0x1927400)</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>