mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 15:20:32 +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);
|
loopcode:=internalstatements(loopcodestatements);
|
||||||
addstatement(loopcodestatements,tfornode(node).t2);
|
addstatement(loopcodestatements,tfornode(node).t2);
|
||||||
|
addstatement(loopcodestatements,calccode);
|
||||||
tfornode(node).t2:=loopcode;
|
tfornode(node).t2:=loopcode;
|
||||||
do_firstpass(node);
|
do_firstpass(node);
|
||||||
addstatement(loopcodestatements,calccode);
|
|
||||||
|
|
||||||
result:=internalstatements(newcodestatements);
|
result:=internalstatements(newcodestatements);
|
||||||
addstatement(newcodestatements,initcode);
|
addstatement(newcodestatements,initcode);
|
||||||
|
Loading…
Reference in New Issue
Block a user