This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r251230 - in /trunk/gcc: ChangeLog match.pd
- From: wilco at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 21 Aug 2017 14:46:37 -0000
- Subject: r251230 - in /trunk/gcc: ChangeLog match.pd
Author: wilco
Date: Mon Aug 21 14:46:34 2017
New Revision: 251230
URL: https://gcc.gnu.org/viewcvs?rev=251230&root=gcc&view=rev
Log:
This patch simplifies pow (C, x) into exp (x * C1) if C > 0, C1 = log (C).
Do this only for fast-math as accuracy is reduced. This is much faster
since pow is more complex than exp.
gcc/
* match.pd: Add pow (C, x) simplification
Modified:
trunk/gcc/ChangeLog
trunk/gcc/match.pd