This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] a small (~.4%) memory savings in convert.c


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.


Attachment: memorysavings.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]