mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 10:19:17 +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);
|
||||
exit;
|
||||
end;
|
||||
end;
|
||||
if is_constintnode(right) and is_constintnode(left) then
|
||||
|
||||
if is_constintnode(left) then
|
||||
begin
|
||||
rv:=tordconstnode(right).value;
|
||||
lv:=tordconstnode(left).value;
|
||||
@ -205,6 +205,7 @@ implementation
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
function tmoddivnode.use_moddiv64bitint_helper: boolean;
|
||||
|
Loading…
Reference in New Issue
Block a user