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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs