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: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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

Reply via email to