mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-28 17:19:18 +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;
|
||||
avail : tdfaset;
|
||||
{ estimation, how often the node is executed per subroutine call times 100, calculated by optutils.CalcExecutionWeight }
|
||||
executionweight : aword;
|
||||
executionweight : longint;
|
||||
end;
|
||||
|
||||
poptinfo = ^toptinfo;
|
||||
|
@ -194,7 +194,7 @@ implementation
|
||||
codegenerror:=false;
|
||||
oldexecutionweight:=cg.executionweight;
|
||||
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
|
||||
cg.executionweight:=100;
|
||||
{$ifdef EXTDEBUG}
|
||||
|
Loading…
Reference in New Issue
Block a user