ソースを参照

* Fix register allocation bug that happens when a coalesced
move is spilled in its entirely.

git-svn-id: trunk@6408 -

daniel 18 年 前
コミット
9256c180de
1 ファイル変更1 行追加1 行削除
  1. 1 1
      compiler/x86/rgx86.pas

+ 1 - 1
compiler/x86/rgx86.pas

@@ -135,7 +135,7 @@ implementation
                     that doesn't need spilling }
                   if (oper[0]^.typ=top_reg) and
                      (oper[1]^.typ=top_reg) and
-                     (getsupreg(oper[0]^.reg)<>getsupreg(oper[1]^.reg)) then
+                     (get_alias(getsupreg(oper[0]^.reg))<>get_alias(getsupreg(oper[1]^.reg))) then
                     begin
                       { One of the arguments shall be able to be replaced }
                       if (getregtype(oper[0]^.reg)=regtype) and