Browse Source

* registers of references aren't reused so we can safe a mov

git-svn-id: trunk@5411 -
florian 19 years ago
parent
commit
ac5b260ec2
1 changed files with 1 additions and 6 deletions
  1. 1 6
      compiler/ncgcnv.pas

+ 1 - 6
compiler/ncgcnv.pas

@@ -224,6 +224,7 @@ interface
       begin
         location_reset(location,LOC_REFERENCE,OS_NO);
         case left.location.loc of
+          LOC_CREGISTER,
           LOC_REGISTER :
             begin
             {$ifdef cpu_uses_separate_address_registers}
@@ -237,12 +238,6 @@ interface
             {$endif}
                 location.reference.base := left.location.register;
             end;
-          LOC_CREGISTER :
-            begin
-              location.reference.base:=cg.getaddressregister(current_asmdata.CurrAsmList);
-              cg.a_load_reg_reg(current_asmdata.CurrAsmList,OS_ADDR,OS_ADDR,left.location.register,
-                location.reference.base);
-            end;
           LOC_REFERENCE,
           LOC_CREFERENCE :
             begin