This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Recognize sqrt(1.0/x) as rsqrt.d on MIPS4
> I'm just uneasy at seeing more uses of flag_unsafe_math_optimizations
> creeping into the back-end. I'd much rather the middle-end say what was
> fair game and what wasn't, in the hope of presenting a more consistent,
> cross-platform interface[*]. Perhaps we could have a rsqrt rtx code and
> optab, and have the middle-end check whether that is available.
This is a good idea. And the target specific patterns can be removed
then, but IMO there's no reason not to have the patterns until such time
though. It's not like it's a gross hack or anything :)
-eric
--
Eric Christopher <echristo@redhat.com>