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:
pierre 2018-10-31 15:47:53 +00:00
parent e5dffebdc7
commit 04fd1a6397
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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}