mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-27 21:10:28 +02:00
* More efficient if-statement construction in tmoddivnode.simplify
This commit is contained in:
parent
40072fb762
commit
0943458713
@ -178,8 +178,8 @@ implementation
|
|||||||
Result:=ctypeconvnode.create_internal(Result,resultdef);
|
Result:=ctypeconvnode.create_internal(Result,resultdef);
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
end;
|
|
||||||
if is_constintnode(right) and is_constintnode(left) then
|
if is_constintnode(left) then
|
||||||
begin
|
begin
|
||||||
rv:=tordconstnode(right).value;
|
rv:=tordconstnode(right).value;
|
||||||
lv:=tordconstnode(left).value;
|
lv:=tordconstnode(left).value;
|
||||||
@ -205,6 +205,7 @@ implementation
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
function tmoddivnode.use_moddiv64bitint_helper: boolean;
|
function tmoddivnode.use_moddiv64bitint_helper: boolean;
|
||||||
|
Loading…
Reference in New Issue
Block a user