* improve heuristics for copy_move vs. copy_string when optimizing for size, #20664

git-svn-id: trunk@19758 -
This commit is contained in:
florian 2011-12-04 21:18:56 +00:00
parent aa529b0705
commit 60cccdcdbd

View File

@ -1826,7 +1826,8 @@ unit cgx86;
if (len>helpsize) then
cm:=copy_string;
if (cs_opt_size in current_settings.optimizerswitches) and
not((len<=16) and (cm=copy_mmx)) then
not((len<=16) and (cm=copy_mmx)) and
not(len in [1,2,4{$ifdef x86_64},8{$endif x86_64}]) then
cm:=copy_string;
if (source.segment<>NR_NO) or
(dest.segment<>NR_NO) then