* fixes loop unrolling

git-svn-id: trunk@11391 -
This commit is contained in:
florian 2008-07-17 19:49:03 +00:00
parent b3d983ce07
commit 4dc547e01c

View File

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