mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 22:09:33 +02:00
Disable one peephole optimization for Thumb
git-svn-id: trunk@24635 -
This commit is contained in:
parent
1797c8b803
commit
c4263ced51
@ -443,7 +443,8 @@ Implementation
|
||||
not(RegModifiedBetween(taicpu(hp1).oper[0]^.reg,p,hp1)) and
|
||||
{ don't apply the optimization if the (new) index register is loaded }
|
||||
(p.oper[0]^.reg<>taicpu(hp1).oper[2]^.reg) and
|
||||
not(RegModifiedBetween(taicpu(hp1).oper[2]^.reg,p,hp1)) then
|
||||
not(RegModifiedBetween(taicpu(hp1).oper[2]^.reg,p,hp1)) and
|
||||
not(current_settings.cputype in cpu_thumb) then
|
||||
begin
|
||||
DebugMsg('Peephole Str/LdrAdd/Sub2Str/Ldr Postindex done', p);
|
||||
p.oper[1]^.ref^.addressmode:=AM_POSTINDEXED;
|
||||
|
Loading…
Reference in New Issue
Block a user