[tree-ssa] PATCH to SAVE_EXPR gimplification

Jason Merrill jason@redhat.com
Tue May 20 20:11:00 GMT 2003


Previously, gimplification of SAVE_EXPRs would emit any post-effects of the
controlled expression between the initialization and use of the temporary.
With copy propagation, this can result in multiple SSA instances of a
variable being unnecessarily alive at the same time.  This patch changes
things so that post-effects end up on the normal postqueue, avoiding the
problem.

Eventually I would expect us to do some reordering to resolve such
conflicts when possible, but we might as well avoid the problem in the
first place when reasonable.

Booted and tested i686-pc-linux-gnu, applied to tree-ssa branch.

2003-05-20  Jason Merrill  <jason@redhat.com>

	* gimplify.c (simplify_save_expr): Add post-effects to the
	postqueue.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-patch
Size: 3143 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20030520/6068ca58/attachment.bin>


More information about the Gcc-patches mailing list