mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-03 22:12:21 +02:00
* x86: Fixed bug where "aoc_ForceNewIteration" wouldn't update the registers properly in some circumstances
This commit is contained in:
parent
7878a7b390
commit
5536810075
@ -276,9 +276,15 @@ unit aoptcpu;
|
||||
if not Result then
|
||||
begin
|
||||
if (p.typ in SkipInstr) then
|
||||
UpdateUsedRegs(p);
|
||||
|
||||
p := tai(p.Next);
|
||||
begin
|
||||
UpdateUsedRegs(p);
|
||||
p := tai(p.Next);
|
||||
end
|
||||
else
|
||||
begin
|
||||
p := tai(p.Next);
|
||||
UpdateUsedRegs(p);
|
||||
end;
|
||||
Result := True;
|
||||
end;
|
||||
end;
|
||||
@ -340,9 +346,15 @@ unit aoptcpu;
|
||||
if not Result then
|
||||
begin
|
||||
if (p.typ in SkipInstr) then
|
||||
UpdateUsedRegs(p);
|
||||
|
||||
p := tai(p.Next);
|
||||
begin
|
||||
UpdateUsedRegs(p);
|
||||
p := tai(p.Next);
|
||||
end
|
||||
else
|
||||
begin
|
||||
p := tai(p.Next);
|
||||
UpdateUsedRegs(p);
|
||||
end;
|
||||
Result := True;
|
||||
end;
|
||||
end;
|
||||
|
@ -199,9 +199,15 @@ uses
|
||||
if not Result then
|
||||
begin
|
||||
if (p.typ in SkipInstr) then
|
||||
UpdateUsedRegs(p);
|
||||
|
||||
p := tai(p.Next);
|
||||
begin
|
||||
UpdateUsedRegs(p);
|
||||
p := tai(p.Next);
|
||||
end
|
||||
else
|
||||
begin
|
||||
p := tai(p.Next);
|
||||
UpdateUsedRegs(p);
|
||||
end;
|
||||
Result := True;
|
||||
end;
|
||||
end;
|
||||
@ -259,9 +265,15 @@ uses
|
||||
if not Result then
|
||||
begin
|
||||
if (p.typ in SkipInstr) then
|
||||
UpdateUsedRegs(p);
|
||||
|
||||
p := tai(p.Next);
|
||||
begin
|
||||
UpdateUsedRegs(p);
|
||||
p := tai(p.Next);
|
||||
end
|
||||
else
|
||||
begin
|
||||
p := tai(p.Next);
|
||||
UpdateUsedRegs(p);
|
||||
end;
|
||||
Result := True;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user