https://bugs.llvm.org/show_bug.cgi?id=49179
Bug ID: 49179
Summary: Missing copysign(1., x) < 0. to std::signbit(x) fold
Product: libraries
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Scalar Optimizations
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
#include <cmath>
bool foo(double x)
{
return std::copysign(1., x) < 0.;
}
bool bar(double x)
{
return std::signbit(x);
}
https://godbolt.org/z/xPMzj9
--
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