Browse Source

* redundant code removed, work is meanwhile done by aasmcpu.optimize_ref

git-svn-id: trunk@40282 -
florian 6 years ago
parent
commit
e8ebc00b3b
1 changed files with 0 additions and 12 deletions
  1. 0 12
      compiler/i386/aoptcpu.pas

+ 0 - 12
compiler/i386/aoptcpu.pas

@@ -393,18 +393,6 @@ begin
             else
             else
             { All other optimizes }
             { All other optimizes }
               begin
               begin
-                for l := 0 to taicpu(p).ops-1 Do
-                  if (taicpu(p).oper[l]^.typ = top_ref) then
-                    With taicpu(p).oper[l]^.ref^ Do
-                      begin
-                        if (base = NR_NO) and
-                           (index <> NR_NO) and
-                           (scalefactor in [0,1]) and (refaddr<>addr_tlsgd) then
-                          begin
-                            base := index;
-                            index := NR_NO
-                          end
-                      end;
                 case taicpu(p).opcode Of
                 case taicpu(p).opcode Of
                   A_AND:
                   A_AND:
                     if OptPass1And(p) then
                     if OptPass1And(p) then