Browse Source

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

Yuriy Sydorov 3 years ago
parent
commit
abe3002b5b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/optloop.pas

+ 1 - 1
compiler/optloop.pas

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