mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 12:09:30 +02:00
* allow ssa to happen for outer for-loop control variables
git-svn-id: trunk@11320 -
This commit is contained in:
parent
5a3f7c5bad
commit
2348c7ea00
@ -435,8 +435,6 @@ implementation
|
|||||||
oldexecutionweight : longint;
|
oldexecutionweight : longint;
|
||||||
begin
|
begin
|
||||||
location_reset(location,LOC_VOID,OS_NO);
|
location_reset(location,LOC_VOID,OS_NO);
|
||||||
oldflowcontrol:=flowcontrol;
|
|
||||||
include(flowcontrol,fc_inflowcontrol);
|
|
||||||
oldclabel:=current_procinfo.CurrContinueLabel;
|
oldclabel:=current_procinfo.CurrContinueLabel;
|
||||||
oldblabel:=current_procinfo.CurrBreakLabel;
|
oldblabel:=current_procinfo.CurrBreakLabel;
|
||||||
current_asmdata.getjumplabel(current_procinfo.CurrContinueLabel);
|
current_asmdata.getjumplabel(current_procinfo.CurrContinueLabel);
|
||||||
@ -477,6 +475,9 @@ implementation
|
|||||||
{ load from value }
|
{ load from value }
|
||||||
secondpass(right);
|
secondpass(right);
|
||||||
|
|
||||||
|
maybechangeloadnodereg(current_asmdata.CurrAsmList,left,false);
|
||||||
|
oldflowcontrol:=flowcontrol;
|
||||||
|
include(flowcontrol,fc_inflowcontrol);
|
||||||
{ produce start assignment }
|
{ produce start assignment }
|
||||||
case left.location.loc of
|
case left.location.loc of
|
||||||
LOC_REFERENCE,
|
LOC_REFERENCE,
|
||||||
|
Loading…
Reference in New Issue
Block a user