https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123826

Hongtao Liu <liuhongt at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |liuhongt at gcc dot gnu.org

--- Comment #6 from Hongtao Liu <liuhongt at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #0)
> Created attachment 63490 [details]
> testcase
> 
> From:
> https://mastodon.social/@dotstdy/115960430921170421
> https://godbolt.org/z/xahMha3zY
> 
> Take the attached testcase.
> GCC will  simplify `pow(a, 2.0)` at -O2 into a*a and constant fold
> `pow(DBL_MAX, 2.0)` (in general). This means we lose the errno setting.
> 
> Note changing this might lose some performance ...

I saw 2 benchmarks in next SPECcpu regressed by ~20% for O2 performance due to 
r16-7264.

Reply via email to