* don't do x*x -> sqr(x) optmization for arm softfloat

git-svn-id: trunk@19193 -
This commit is contained in:
florian 2011-09-23 17:23:35 +00:00
parent f0c8563f2d
commit bba726ae78

View File

@ -859,7 +859,11 @@ implementation
{ using sqr(x) for reals instead of x*x might reduces register pressure and/or
memory accesses while sqr(<real>) has no drawback }
if (nodetype=muln) and
if
{$ifdef ARM}
(current_settings.fputype<>fpu_soft) and
{$endif ARM}
(nodetype=muln) and
is_real(left.resultdef) and is_real(right.resultdef) and
left.isequal(right) and
not(might_have_sideeffects(left)) then