浏览代码

* Count only usable real registers.

git-svn-id: trunk@46197 -
yury 5 年之前
父节点
当前提交
601e05f17f
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      compiler/rgobj.pas

+ 2 - 1
compiler/rgobj.pas

@@ -690,7 +690,8 @@ unit rgobj;
             if adjlist=nil then
               new(adjlist,init);
             adjlist^.add(v);
-            if v<first_imaginary then
+            if (v<first_imaginary) and
+               (v in usable_register_set) then
               inc(real_reg_interferences);
           end;
       end;