mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-30 19:40:08 +02:00
Complement commit 40104, by changing type of executionweight in toptinfo record and adapt pass_2 code
git-svn-id: trunk@40111 -
This commit is contained in:
parent
e5dffebdc7
commit
04fd1a6397
@ -44,7 +44,7 @@ unit optbase;
|
|||||||
defsum : tdfaset;
|
defsum : tdfaset;
|
||||||
avail : tdfaset;
|
avail : tdfaset;
|
||||||
{ estimation, how often the node is executed per subroutine call times 100, calculated by optutils.CalcExecutionWeight }
|
{ estimation, how often the node is executed per subroutine call times 100, calculated by optutils.CalcExecutionWeight }
|
||||||
executionweight : aword;
|
executionweight : longint;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
poptinfo = ^toptinfo;
|
poptinfo = ^toptinfo;
|
||||||
|
@ -194,7 +194,7 @@ implementation
|
|||||||
codegenerror:=false;
|
codegenerror:=false;
|
||||||
oldexecutionweight:=cg.executionweight;
|
oldexecutionweight:=cg.executionweight;
|
||||||
if assigned(p.optinfo) then
|
if assigned(p.optinfo) then
|
||||||
cg.executionweight:=min(p.optinfo^.executionweight,QWord(high(cg.executionweight)))
|
cg.executionweight:=min(p.optinfo^.executionweight,high(cg.executionweight))
|
||||||
else
|
else
|
||||||
cg.executionweight:=100;
|
cg.executionweight:=100;
|
||||||
{$ifdef EXTDEBUG}
|
{$ifdef EXTDEBUG}
|
||||||
|
Loading…
Reference in New Issue
Block a user