mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-07-24 01:16:04 +02:00
* don't change "mov const,ref; mov ref,reg" into "mov const,reg; mov reg,ref"
if ref depends on reg git-svn-id: trunk@3002 -
This commit is contained in:
parent
061162d9da
commit
01cf70d354
@ -1202,7 +1202,8 @@ begin
|
||||
(taicpu(hp1).oper[0]^.typ = top_ref) and
|
||||
(taicpu(hp1).oper[1]^.typ = top_reg) and
|
||||
(taicpu(p).opsize = taicpu(hp1).opsize) and
|
||||
RefsEqual(taicpu(hp1).oper[0]^.ref^,taicpu(p).oper[1]^.ref^) then
|
||||
RefsEqual(taicpu(hp1).oper[0]^.ref^,taicpu(p).oper[1]^.ref^) and
|
||||
not(reginref(getsupreg(taicpu(hp1).oper[1]^.reg),taicpu(hp1).oper[0]^.ref^)) then
|
||||
begin
|
||||
allocregbetween(asml,taicpu(hp1).oper[1]^.reg,p,hp1,usedregs);
|
||||
taicpu(hp1).loadReg(0,taicpu(hp1).oper[1]^.reg);
|
||||
|
Loading…
Reference in New Issue
Block a user