This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/25620] Missed optimization with power
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jan 2006 18:42:45 -0000
- Subject: [Bug fortran/25620] Missed optimization with power
- References: <bug-25620-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from rguenth at gcc dot gnu dot org 2006-01-13 18:42 -------
Looking at how we deal with all this, we seem to like pow() very much during
folding, even doing the reverse transformations you suggest. The
transformation
back to sqrt ( x**N ) with N being an integer could be done by
expand_builtin_pow
in case that computation of sqrt is cheap. Other than that, exposing integer
powers is only a win if theres some CSE possibility.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25620