* check also register type in FindRegalloc

git-svn-id: trunk@22195 -
This commit is contained in:
florian 2012-08-22 19:52:43 +00:00
parent a92ca7c456
commit 3e9baa3f47

View File

@ -1021,7 +1021,9 @@ Unit AoptObj;
If Assigned(StartPai) And
(StartPai.typ = ait_regAlloc) Then
Begin
if (tai_regalloc(StartPai).ratype=ra_alloc) and (getsupreg(tai_regalloc(StartPai).Reg) = getsupreg(Reg)) then
if (tai_regalloc(StartPai).ratype=ra_alloc) and
(getregtype(tai_regalloc(StartPai).Reg) = getregtype(Reg)) and
(getsupreg(tai_regalloc(StartPai).Reg) = getsupreg(Reg)) then
begin
Result:=tai_regalloc(StartPai);
exit;