[llvm-bugs] [Bug 42944] New: Transform hypot(a, b) to sqrt(a*a + b*b) in fast math mode
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Aug 9 06:44:13 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=42944
Bug ID: 42944
Summary: Transform hypot(a, b) to sqrt(a*a + b*b) in fast math
mode
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Scalar Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: david.bolvansky at gmail.com
CC: llvm-bugs at lists.llvm.org
hypot(a, b) to sqrt(a*a + b*b) in -Ofast?
1, Is it ok to increase uses of a,b? Since pow(a, 2) is optimized to a*a,
probably yes..
2, Is a probability of overflow for 'a*a + b*b' high or not ? (whether this
transformation is fine for -Ofast)
--
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/20190809/4ffb857a/attachment-0001.html>
More information about the llvm-bugs
mailing list