[llvm-bugs] [Bug 37451] New: Assertion `!contains(New, this) && "this->replaceAllUsesWith(expr(this)) is NOT valid!"' failed. with -ipconstprop

via llvm-bugs llvm-bugs at lists.llvm.org
Mon May 14 07:19:53 PDT 2018


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

            Bug ID: 37451
           Summary: Assertion `!contains(New, this) &&
                    "this->replaceAllUsesWith(expr(this)) is NOT valid!"'
                    failed. with -ipconstprop
           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 20302
  --> https://bugs.llvm.org/attachment.cgi?id=20302&action=edit
reproducer

Running:
 opt -S -o - tr15999.ll -ipconstprop

gives

opt: ../lib/IR/Value.cpp:409: void llvm::Value::doRAUW(llvm::Value *, bool):
Assertion `!contains(New, this) && "this->replaceAllUsesWith(expr(this)) is NOT
valid!"' failed.
Stack dump:
0.      Program arguments: opt -S -o - tr15999.ll -ipconstprop 
1.      Running pass 'Interprocedural constant propagation' on module
'tr15999.ll'.
LLVMSymbolizer: error reading file: No such file or directory
#0 0x0000000002174ae4 (opt+0x2174ae4)
#1 0x0000000002175256 (opt+0x2175256)
#2 0x00007f3f637d6330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#3 0x00007f3f623c5c37 gsignal
/build/eglibc-ripdx6/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#4 0x00007f3f623c9028 abort
/build/eglibc-ripdx6/eglibc-2.19/stdlib/abort.c:91:0
#5 0x00007f3f623bebf6 __assert_fail_base
/build/eglibc-ripdx6/eglibc-2.19/assert/assert.c:92:0
#6 0x00007f3f623beca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
#7 0x0000000001c50bfd (opt+0x1c50bfd)
#8 0x0000000001cd8f51 (opt+0x1cd8f51)
#9 0x0000000001c09df5 (opt+0x1c09df5)
#10 0x000000000076bf85 (opt+0x76bf85)
#11 0x00007f3f623b0f45 __libc_start_main
/build/eglibc-ripdx6/eglibc-2.19/csu/libc-start.c:321:0
#12 0x00000000007558fd (opt+0x7558fd)

-- 
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/20180514/bfe399ec/attachment.html>


More information about the llvm-bugs mailing list