diff options
author | Wilco Dijkstra <wdijkstr@arm.com> | 2017-08-21 14:46:34 +0000 |
---|---|---|
committer | Wilco Dijkstra <wilco@gcc.gnu.org> | 2017-08-21 14:46:34 +0000 |
commit | e83fe013941bf8b3129a8ceb19e14ea7d8c51aa2 (patch) | |
tree | 81c6e0100e7b9cb8ab7fa98c986144cf9fd74c74 /gcc/expr.c | |
parent | 13c6f12c0e948f975ad5a0efb79340c9dc39eaee (diff) | |
download | gcc-e83fe013941bf8b3129a8ceb19e14ea7d8c51aa2.zip gcc-e83fe013941bf8b3129a8ceb19e14ea7d8c51aa2.tar.gz gcc-e83fe013941bf8b3129a8ceb19e14ea7d8c51aa2.tar.bz2 |
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
From-SVN: r251230
Diffstat (limited to 'gcc/expr.c')
0 files changed, 0 insertions, 0 deletions