mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-20 15:09:36 +02:00
+ take care of addn and subn in is_loop_invariant
git-svn-id: trunk@44251 -
This commit is contained in:
parent
3cecec0b24
commit
507fc9c1ff
@ -275,6 +275,8 @@ unit optloop;
|
|||||||
end;
|
end;
|
||||||
typeconvn:
|
typeconvn:
|
||||||
result:=is_loop_invariant(loop,ttypeconvnode(expr).left);
|
result:=is_loop_invariant(loop,ttypeconvnode(expr).left);
|
||||||
|
addn,subn:
|
||||||
|
result:=is_loop_invariant(loop,taddnode(expr).left) and is_loop_invariant(loop,taddnode(expr).right);
|
||||||
else
|
else
|
||||||
;
|
;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user