Browse Source

* patch based on a proposal by J. Gareth Moreton to reduce register usage

git-svn-id: trunk@37941 -
florian 7 years ago
parent
commit
724b822b54
1 changed files with 1 additions and 3 deletions
  1. 1 3
      compiler/x86/nx86mat.pas

+ 1 - 3
compiler/x86/nx86mat.pas

@@ -611,10 +611,8 @@ interface
 
 
                     emit_reg_reg(A_SUB,opsize,regd,hreg2);
                     emit_reg_reg(A_SUB,opsize,regd,hreg2);
                     cg.ungetcpuregister(current_asmdata.CurrAsmList,regd);
                     cg.ungetcpuregister(current_asmdata.CurrAsmList,regd);
-                    location.register:=cg.getintregister(current_asmdata.CurrAsmList,cgsize);
-                    cg.a_load_reg_reg(current_asmdata.CurrAsmList,cgsize,cgsize,hreg2,location.register)
+                    location.register:=hreg2;
                   end;
                   end;
-
               end;
               end;
           end
           end
         else
         else