This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/23157] [4.1 Regression] incorrect sharing of tree nodes regression
- From: "rakdver at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jul 2005 16:44:30 -0000
- Subject: [Bug tree-optimization/23157] [4.1 Regression] incorrect sharing of tree nodes regression
- References: <20050731084553.23157.marcus@jet.franken.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From rakdver at gcc dot gnu dot org 2005-07-31 16:44 -------
Adding
def = unshare_expr (def);
after
if (force_expr_to_var_cost (def) >= target_spill_cost)
continue;
in tree-scalar-evolution.c might help. I cannot test it just now (I am on
shared computer and cannot take much time).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23157