Browse Source

* Count only usable real registers.

git-svn-id: trunk@46197 -
yury 5 years ago
parent
commit
601e05f17f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      compiler/rgobj.pas

+ 2 - 1
compiler/rgobj.pas

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