Преглед изворни кода

+ also apply optimize_ref() on references of inline asm instructions

git-svn-id: trunk@37512 -
nickysn пре 7 година
родитељ
комит
0d1f7910d7
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      compiler/x86/rax86.pas

+ 2 - 0
compiler/x86/rax86.pas

@@ -1248,6 +1248,8 @@ begin
                         localscale,localgetoffset,localforceref);
                         localscale,localgetoffset,localforceref);
        OPR_REFERENCE:
        OPR_REFERENCE:
          begin
          begin
+           if (opcode<>A_XLAT) and not is_x86_string_op(opcode) then
+             optimize_ref(operands[i].opr.ref,true);
            ai.loadref(i-1,operands[i].opr.ref);
            ai.loadref(i-1,operands[i].opr.ref);
            if operands[i].size<>OS_NO then
            if operands[i].size<>OS_NO then
              begin
              begin