* more div n^2 optimization

git-svn-id: trunk@8867 -
This commit is contained in:
florian 2007-10-20 18:02:55 +00:00
parent cc5e29fe01
commit c77267e01f

View File

@ -66,7 +66,10 @@ implementation
begin
if (right.nodetype=ordconstn) and
(nodetype=divn) and
ispowerof2(tordconstnode(right).value,power) and
(ispowerof2(tordconstnode(right).value,power) or
(tordconstnode(right).value=1) or
(tordconstnode(right).value=-1)
) and
not(is_64bitint(resultdef)) then
result:=nil
else