[llvm-bugs] [Bug 41271] New: Assertion `Op.hasOneUse() && "Unknown reuse!"'

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Mar 28 03:48:07 PDT 2019


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

            Bug ID: 41271
           Summary: Assertion `Op.hasOneUse() && "Unknown reuse!"'
           Product: libraries
           Version: 6.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: GlobalISel
          Assignee: unassignedbugs at nondot.org
          Reporter: konstantin.vladimirov at gmail.com
                CC: llvm-bugs at lists.llvm.org, quentin.colombet at gmail.com

Following simple test:

float a;
char b;
int c() { b = a * -a * (-a * -a * 0); return b; }

crashes clang 6.0 in assertion

> clang -S minimize.c
clang-6.0: /srcs/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:731:
llvm::SDValue GetNegatedExpression(llvm::SDValue, llvm::SelectionDAG&, bool,
unsigned int): Assertion `Op.hasOneUse() && "Unknown reuse!"' failed.

Compiler information:

> clang -v
clang version 6.0.0 (tags/RELEASE_600/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /apps/clang/6.0.0//bin
Selected GCC installation: /usr/lib64/gcc/x86_64-suse-linux/4.3
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
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/20190328/6e865daa/attachment-0001.html>


More information about the llvm-bugs mailing list