소스 검색

* accumulate register weight instead of taking only the maximum

git-svn-id: trunk@25433 -
florian 12 년 전
부모
커밋
dc567acc9a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      compiler/rgobj.pas

+ 2 - 2
compiler/rgobj.pas

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