mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 00:08:12 +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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user