mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 00:19:25 +02:00
* more div n^2 optimization
git-svn-id: trunk@8867 -
This commit is contained in:
parent
cc5e29fe01
commit
c77267e01f
@ -66,7 +66,10 @@ implementation
|
|||||||
begin
|
begin
|
||||||
if (right.nodetype=ordconstn) and
|
if (right.nodetype=ordconstn) and
|
||||||
(nodetype=divn) 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
|
not(is_64bitint(resultdef)) then
|
||||||
result:=nil
|
result:=nil
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user