https://bugs.llvm.org/show_bug.cgi?id=43725
Bug ID: 43725
Summary: Bad floating-point "optimizations"
Product: clang
Version: 8.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
Is there a way to disable ALL "optimizations" related to floating-point?
My testing has shown that clang does the following:
1. * x => x
0. * x => 0.
x / 1. => x
x / x => 1.
0. / x => 0.
x + 0. => x
x - 0. => x
x - x => 0.
They are all invalid "optimizations" if x is a signaling NaN.
In addition, some are invalid if x is a signed zero or infinity.
In the above, 'x' can be either a variable or a constant.
It might matter if 'x' is float, double, or long double.
--
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