The scheduler pass of the ARM optimizer left markers in the instruction list, which could prevent further peephole optimizations

git-svn-id: trunk@24781 -
This commit is contained in:
Jeppe Johansen 2013-06-02 16:37:41 +00:00
parent 7edabc64e6
commit 2d823452b7
2 changed files with 6 additions and 1 deletions

View File

@ -122,6 +122,7 @@ interface
type
TAsmList = class(tlinkedlist)
constructor create;
constructor create_without_marker;
function empty : boolean;
function getlasttaifilepos : pfileposinfo;
end;
@ -288,6 +289,10 @@ implementation
insert(tai_marker.create(mark_BlockStart));
end;
constructor TAsmList.create_without_marker;
begin
inherited create;
end;
function TAsmList.empty : boolean;
begin

View File

@ -2081,7 +2081,7 @@ Implementation
begin
result:=true;
list:=TAsmList.Create;
list:=TAsmList.create_without_marker;
p:=BlockStart;
while p<>BlockEnd Do
begin