This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] tree-ssa vs. fold
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: rth at redhat dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 7 Jun 03 21:00:02 EDT
- Subject: Re: [tree-ssa] tree-ssa vs. fold
While (d) is certainly desirable, there is an even more
short-term solution that would probably benefit mainline
as well: a SAVE_EXPR shouldn't have been created for a
simple non-volatile DECL.
I don't think that's right. You could have an object whose size depends on
a non-volatile variable and then modify the variable before one use of
the size. The SAVE_EXPR forces proper evaluation in that case.