Pārlūkot izejas kodu

* fixes loop unrolling

git-svn-id: trunk@11391 -
florian 17 gadi atpakaļ
vecāks
revīzija
4dc547e01c
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      compiler/optunrol.pas

+ 2 - 1
compiler/optunrol.pas

@@ -34,6 +34,7 @@ unit optunrol;
 
 
     uses
     uses
       globtype,globals,constexp,
       globtype,globals,constexp,
+      symsym,
       cpuinfo,
       cpuinfo,
       nutils,
       nutils,
       nbas,nflw,ncon,ninl,ncal,nld;
       nbas,nflw,ncon,ninl,ncal,nld;
@@ -112,7 +113,7 @@ unit optunrol;
                     if (counts mod unrolls<>0) and
                     if (counts mod unrolls<>0) and
                       ((counts mod unrolls)=unrolls-i) then
                       ((counts mod unrolls)=unrolls-i) then
                       begin
                       begin
-                        tfornode(node).entrylabel:=clabelnode.create(cnothingnode.create,nil);
+                        tfornode(node).entrylabel:=clabelnode.create(cnothingnode.create,tlabelsym.create('$optunrol'));
                         addstatement(unrollstatement,tfornode(node).entrylabel);
                         addstatement(unrollstatement,tfornode(node).entrylabel);
                       end;
                       end;