mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 18:49:16 +02:00
* enable TCpuAsmOptimizer.RemoveSuperfluousVMov for VLDR
* fixed TCpuAsmOptimizer.RemoveSuperfluousVMov to be actually applied git-svn-id: trunk@42668 -
This commit is contained in:
parent
58bbbadc16
commit
f23f3a4c5e
@ -473,8 +473,8 @@ Implementation
|
|||||||
begin
|
begin
|
||||||
Result:=false;
|
Result:=false;
|
||||||
if (MatchInstruction(movp, A_VMOV, [taicpu(p).condition], [taicpu(p).oppostfix]) or
|
if (MatchInstruction(movp, A_VMOV, [taicpu(p).condition], [taicpu(p).oppostfix]) or
|
||||||
((taicpu(p).oppostfix in [PF_F64F32,PF_F64S16,PF_F64S32,PF_F64U16,PF_F64U32]) and MatchInstruction(movp, A_VMOV, [taicpu(p).condition], [PF_F64])) or
|
(((taicpu(p).oppostfix in [PF_F64F32,PF_F64S16,PF_F64S32,PF_F64U16,PF_F64U32]) or (getsubreg( taicpu(p).oper[0]^.reg)=R_SUBFD)) and MatchInstruction(movp, A_VMOV, [taicpu(p).condition], [PF_F64])) or
|
||||||
((taicpu(p).oppostfix in [PF_F32F64,PF_F32S16,PF_F32S32,PF_F32U16,PF_F32U32]) and MatchInstruction(movp, A_VMOV, [taicpu(p).condition], [PF_F32]))
|
(((taicpu(p).oppostfix in [PF_F32F64,PF_F32S16,PF_F32S32,PF_F32U16,PF_F32U32]) or (getsubreg( taicpu(p).oper[0]^.reg)=R_SUBFS)) and MatchInstruction(movp, A_VMOV, [taicpu(p).condition], [PF_F32]))
|
||||||
) and
|
) and
|
||||||
(taicpu(movp).ops=2) and
|
(taicpu(movp).ops=2) and
|
||||||
MatchOperand(taicpu(movp).oper[1]^, taicpu(p).oper[0]^.reg) and
|
MatchOperand(taicpu(movp).oper[1]^, taicpu(p).oper[0]^.reg) and
|
||||||
@ -2245,6 +2245,7 @@ Implementation
|
|||||||
DebugMsg('Peephole Bl2B done', p);
|
DebugMsg('Peephole Bl2B done', p);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
A_VLDR,
|
||||||
A_VADD,
|
A_VADD,
|
||||||
A_VMUL,
|
A_VMUL,
|
||||||
A_VDIV,
|
A_VDIV,
|
||||||
|
Loading…
Reference in New Issue
Block a user