* cleanup

This commit is contained in:
florian 2025-09-20 23:14:42 +02:00
parent 9c2da4ad14
commit 63c4bc29ba
2 changed files with 2 additions and 55 deletions

View File

@ -21,7 +21,6 @@
****************************************************************************
}
Unit aoptcpu;
Interface
@ -29,62 +28,14 @@ Interface
{$i fpcdefs.inc}
uses
cpubase,
aoptobj, aoptcpub, aopt, aoptcpurv,
aasmtai,aasmdata, aasmcpu;
aopt, aoptcpurv;
Type
TCpuAsmOptimizer = class(TRVCpuAsmOptimizer)
{ uses the same constructor as TAopObj }
function PeepHoleOptPass1Cpu(var p: tai): boolean; override;
function PostPeepHoleOptsCpu(var p: tai): boolean; override;
End;
Implementation
uses
cutils, verbose, cgbase, cgcpu, cgobj;
function TCpuAsmOptimizer.PeepHoleOptPass1Cpu(var p: tai): boolean;
var
next1, next2: tai;
l1, l2, shlcount: longint;
begin
result := inherited PeepHoleOptPass1Cpu(p);
if result then
exit;
case p.typ of
ait_instruction:
begin
{case taicpu(p).opcode of
end;}
end;
else
;
end;
end;
function TCpuAsmOptimizer.PostPeepHoleOptsCpu(var p: tai): boolean;
var
next1: tai;
begin
result := inherited PostPeepHoleOptsCpu(p);
if result then
exit;
case p.typ of
ait_instruction:
begin
end;
else
;
end;
end;
begin
casmoptimizer:=TCpuAsmOptimizer;
End.

View File

@ -32,11 +32,7 @@ interface
{$endif EXTDEBUG}
uses
cpubase,
globals, globtype,
cgbase,
aoptobj, aoptcpub, aopt, aoptcpurv,
aasmtai, aasmcpu;
aopt,aoptcpurv;
type