浏览代码

* do not search a node tree which has been found being subject to cse further on

git-svn-id: trunk@26691 -
florian 11 年之前
父节点
当前提交
c5523fc780
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      compiler/optcse.pas

+ 4 - 0
compiler/optcse.pas

@@ -225,6 +225,10 @@ unit optcse;
                     else
                       plists(arg)^.equalto[plists(arg)^.nodelist.count-1]:=pointer(ptrint(i));
                     plists(arg)^.refs[i]:=pointer(plists(arg)^.refs[i])+1;
+                    { tree has been found, no need to search further,
+                      sub-trees have been added by the first occurence of
+                      the tree already }
+                    result:=fen_norecurse_false;
                     break;
                   end;
               end;