mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 13:28:05 +02:00
* variables where the address is taken could have aliases so they aren't invariant
git-svn-id: trunk@11806 -
This commit is contained in:
parent
0b5951fa14
commit
17d3da7266
@ -200,7 +200,10 @@ unit optloop;
|
||||
if (pi_dfaavailable in current_procinfo.flags) and
|
||||
assigned(loop.optinfo) and
|
||||
assigned(expr.optinfo) then
|
||||
result:=not(DFASetIn(loop.optinfo^.defsum,expr.optinfo^.index));
|
||||
{ no aliasing? }
|
||||
result:=not(tabstractvarsym(tloadnode(expr).symtableentry).addr_taken) and
|
||||
{ no definition in the loop? }
|
||||
not(DFASetIn(loop.optinfo^.defsum,expr.optinfo^.index));
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user