Browse Source

* accumulate register weight instead of taking only the maximum

git-svn-id: trunk@25433 -
florian 12 years ago
parent
commit
dc567acc9a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/rgobj.pas

+ 2 - 2
compiler/rgobj.pas

@@ -773,8 +773,8 @@ unit rgobj;
         if supreg>=first_imaginary then
         if supreg>=first_imaginary then
           with reginfo[supreg] do
           with reginfo[supreg] do
             begin
             begin
-              if aweight>weight then
-                weight:=aweight;
+              // if aweight>weight then
+              inc(weight,aweight);
               if (live_range_direction=rad_forward) then
               if (live_range_direction=rad_forward) then
                 begin
                 begin
                   if not assigned(live_start) then
                   if not assigned(live_start) then