mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 09:47:52 +02:00
* arm/aarch64: patch by J. Gareth Moreton: fix register allocation information for Mov2None 2, should resolve #38055
git-svn-id: trunk@48235 -
This commit is contained in:
parent
13318117ed
commit
7a3eb453d4
@ -531,6 +531,11 @@ Implementation
|
||||
{ Instruction will become mov r1,r1 }
|
||||
DebugMsg('Peephole Optimization: Mov2None 2 done', next_hp);
|
||||
|
||||
{ Allocate r1 between the instructions; not doing
|
||||
so may cause problems when removing superfluous
|
||||
MOVs later (i38055) }
|
||||
AllocRegBetween(taicpu(p).oper[1]^.reg, p, next_hp, UsedRegs);
|
||||
|
||||
if (next_hp = hp1) then
|
||||
{ Don't let hp1 become a dangling pointer }
|
||||
hp1 := nil;
|
||||
|
Loading…
Reference in New Issue
Block a user