[PATCH] a small (~.4%) memory savings in convert.c
Andrew Pinski
pinskia@physics.uc.edu
Tue Aug 2 16:39:00 GMT 2005
I noticed that we building a NOP_EXPR in convert even though we call
fold after
calling convert (and convert_to_integer). This patch changes one
build1 to be
fold_build1 and it saves about .4% of the memory while compiling
PR8361. It might
help other testcases more but I have not looked into this yet.
OK? Bootstrapped and tested on powerpc-darwin7.9.0 with no regressions.
:ADDPATCH convert.c:
Thanks,
Andrew Pinski
ChangeLog:
* convert.c (convert_to_integer): Use fold_build1 instead of
build1 when converting an integer to an integer.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: memorysavings.diff.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050802/68bf3601/attachment.txt>
More information about the Gcc-patches
mailing list