mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 10:19:17 +02:00
* when determining of a register is used after an instruction, new allocs should not be taken into account
git-svn-id: trunk@22189 -
This commit is contained in:
parent
07e26cfb12
commit
5fd457e586
@ -252,7 +252,7 @@ Implementation
|
||||
function TCpuAsmOptimizer.RegUsedAfterInstruction(reg: Tregister; p: tai;
|
||||
var AllUsedRegs: TAllUsedRegs): Boolean;
|
||||
begin
|
||||
AllUsedRegs[getregtype(reg)].Update(tai(p.Next));
|
||||
AllUsedRegs[getregtype(reg)].Update(tai(p.Next),true);
|
||||
RegUsedAfterInstruction :=
|
||||
AllUsedRegs[getregtype(reg)].IsUsed(reg) and
|
||||
not(regLoadedWithNewValue(reg,p)) and
|
||||
|
Loading…
Reference in New Issue
Block a user