[llvm-bugs] [Bug 32340] New: Assertion `N->getOpcode() != ISD::DELETED_NODE && "Deleted Node added to Worklist"' failed with -O0

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Mar 18 11:21:37 PDT 2017


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

            Bug ID: 32340
           Summary: Assertion `N->getOpcode() != ISD::DELETED_NODE &&
                    "Deleted Node added to Worklist"' failed with -O0
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: Vsevolod.Livinskij at frtk.ru
                CC: llvm-bugs at lists.llvm.org

Created attachment 18124
  --> https://bugs.llvm.org/attachment.cgi?id=18124&action=edit
Reproducer.

Clang fails with assertion with -O0 option.

Reproducer:
extern const long long int var_28;
extern unsigned short var_32;
extern long long int var_57;
extern unsigned short var_825;
extern long long int var_826;
extern short var_827;
extern unsigned short var_900;
extern unsigned short var_901;

void foo() {
  var_825 = 0;
  var_826 = (var_32 ^ (var_32 ^ var_901)) + var_32;
  var_900 = var_32 ^ ~(var_32 ^ (-1142377792914674427LL ^ 18757 ^ (51981 ^
var_901))) | (var_32 ^ ~(var_32 ^ (-1142377792914674427LL ^ 18757 ^ (51981 ^
var_901))) | var_57);
  var_827 = 0 != var_28;
}

Error:
>$ clang++ -w -O0 -c repr.cpp 
llvm-trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:133: void
{anonymous}::DAGCombiner::AddToWorklist(llvm::SDNode*): Assertion
`N->getOpcode() != ISD::DELETED_NODE && "Deleted Node added to Worklist"'
failed.
(......)
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module 'repr.cpp'.
4.      Running pass 'X86 DAG->DAG Instruction Selection' on function
'@_Z3foov'

LLVM version:
clang version 5.0.0 (trunk 298108)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/vsevolod/workspace/llvm/bin-trunk/bin
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5.4.0
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/6.0.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.4.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.0.0
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.4.0
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64

-- 
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/20170318/8a9a36ae/attachment.html>


More information about the llvm-bugs mailing list