|
@@ -168,10 +168,10 @@ unit aoptcpu;
|
|
|
if MatchOperand(taicpu(p).oper[0]^,taicpu(p).oper[1]^) then
|
|
|
begin
|
|
|
DebugMsg('Optimizer: '+opstr+' + '+opstr+' removed',p);
|
|
|
- GetNextInstruction(p,next);
|
|
|
+ GetNextInstruction(p,next);
|
|
|
asml.remove(p);
|
|
|
p.free;
|
|
|
- p:=next;
|
|
|
+ p:=next;
|
|
|
end
|
|
|
else
|
|
|
DebugMsg('Optimizer: '+opstr+' + '+opstr+' to '+opstr+' #1',p)
|
|
@@ -273,10 +273,10 @@ unit aoptcpu;
|
|
|
(taicpu(p).oper[0]^.ref^.offset = 0) then
|
|
|
begin
|
|
|
DebugMsg('Optimizer: LEA 0(Ax),Ax removed',p);
|
|
|
- GetNextInstruction(p,next);
|
|
|
+ GetNextInstruction(p,next);
|
|
|
asml.remove(p);
|
|
|
p.free;
|
|
|
- p:=next;
|
|
|
+ p:=next;
|
|
|
result:=true;
|
|
|
end;
|
|
|
{ Address register sub/add can be replaced with ADDQ/SUBQ or LEA if the value is in the
|