mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 13:28:05 +02:00
* Fixed lack of the calculation code for the strength reduction optimization.
This commit is contained in:
parent
a7e234254f
commit
abe3002b5b
@ -512,9 +512,9 @@ unit optloop;
|
||||
|
||||
loopcode:=internalstatements(loopcodestatements);
|
||||
addstatement(loopcodestatements,tfornode(node).t2);
|
||||
addstatement(loopcodestatements,calccode);
|
||||
tfornode(node).t2:=loopcode;
|
||||
do_firstpass(node);
|
||||
addstatement(loopcodestatements,calccode);
|
||||
|
||||
result:=internalstatements(newcodestatements);
|
||||
addstatement(newcodestatements,initcode);
|
||||
|
Loading…
Reference in New Issue
Block a user