* when doing a string comparison that calls an rtl helper, compare the function

result with an 8-bit zero constant (which will be expanded to the native
  integer size by the comparison node), instead of 32-bit zero. This avoids the
  unnecessary 32-bit comparison on 16-bit and 8-bit cpus.

git-svn-id: trunk@32099 -
This commit is contained in:
nickysn 2015-10-20 01:22:01 +00:00
parent db7b743139
commit a20428f246

View File

@ -2419,7 +2419,7 @@ implementation
ccallparanode.create(right,ccallparanode.create(left,nil)));
{ and compare its result with 0 according to the original operator }
result := caddnode.create(nodetype,result,
cordconstnode.create(0,s32inttype,false));
cordconstnode.create(0,s8inttype,false));
left := nil;
right := nil;
end;