浏览代码

* simplify body of for loop before unrolling

git-svn-id: trunk@25246 -
florian 12 年之前
父节点
当前提交
cfcb4cab26
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      compiler/nflw.pas

+ 3 - 0
compiler/nflw.pas

@@ -1476,6 +1476,9 @@ implementation
          { loop unrolling }
          if cs_opt_loopunroll in current_settings.optimizerswitches then
            begin
+             res:=t2.simplify(false);
+             if assigned(res) then
+               t2:=res;
              res:=unroll_loop(self);
              if assigned(res) then
                begin