[llvm-bugs] [Bug 49065] New: [Inliner] Assertion "Referenced value not in value map!" failed.

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Feb 5 15:06:56 PST 2021


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

            Bug ID: 49065
           Summary: [Inliner]  Assertion "Referenced value not in value
                    map!" failed.
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: paulsson at linux.vnet.ibm.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 24486
  --> https://bugs.llvm.org/attachment.cgi?id=24486&action=edit
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)

-- 
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/20210205/b227f272/attachment.html>


More information about the llvm-bugs mailing list