瀏覽代碼

* when determining of a register is used after an instruction, new allocs should not be taken into account

git-svn-id: trunk@22189 -
florian 13 年之前
父節點
當前提交
5fd457e586
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/arm/aoptcpu.pas

+ 1 - 1
compiler/arm/aoptcpu.pas

@@ -252,7 +252,7 @@ Implementation
   function TCpuAsmOptimizer.RegUsedAfterInstruction(reg: Tregister; p: tai;
     var AllUsedRegs: TAllUsedRegs): Boolean;
     begin
-      AllUsedRegs[getregtype(reg)].Update(tai(p.Next));
+      AllUsedRegs[getregtype(reg)].Update(tai(p.Next),true);
       RegUsedAfterInstruction :=
         AllUsedRegs[getregtype(reg)].IsUsed(reg) and
         not(regLoadedWithNewValue(reg,p)) and