* Fixed lack of the calculation code for the strength reduction optimization.

This commit is contained in:
Yuriy Sydorov 2021-09-15 00:31:10 +03:00
parent a7e234254f
commit abe3002b5b

View File

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