|
@@ -1142,7 +1142,9 @@ implementation
|
|
end;
|
|
end;
|
|
end
|
|
end
|
|
{ optimize a/a and a-a }
|
|
{ optimize a/a and a-a }
|
|
- else if (cs_opt_level2 in current_settings.optimizerswitches) and (nodetype in [slashn,subn]) and
|
|
|
|
|
|
+ else if (((cs_opt_level2 in current_settings.optimizerswitches) and (nodetype=subn)) or
|
|
|
|
+ (([cs_opt_fastmath,cs_opt_level2]*current_settings.optimizerswitches=[cs_opt_fastmath,cs_opt_level2]) and (nodetype=slashn))
|
|
|
|
+ ) and
|
|
left.isequal(right) and not(might_have_sideeffects(left,[mhs_exceptions])) then
|
|
left.isequal(right) and not(might_have_sideeffects(left,[mhs_exceptions])) then
|
|
begin
|
|
begin
|
|
case nodetype of
|
|
case nodetype of
|