This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/14016] [tree-ssa] User variable get eliminated, only to be replaced with compiler generated ones
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Feb 2004 23:43:51 -0000
- Subject: [Bug optimization/14016] [tree-ssa] User variable get eliminated, only to be replaced with compiler generated ones
- References: <20040204080152.14016.dann@godzilla.ics.uci.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From steven at gcc dot gnu dot org 2004-02-04 23:43 -------
This comment in gimplify_modify_expr seems to be relevant here:
/* If the RHS of the MODIFY_EXPR may throw or make a nonlocal goto and
the LHS is a user variable, then we need to introduce a temporary.
ie temp = RHS; LHS = temp.
This way the optimizers can determine that the user variable is
only modified if evaluation of the RHS does not throw.
FIXME this should be handled by the is_gimple_rhs predicate. */
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14016