This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/39204] [4.4 Regression] ICE in compute_attic
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Feb 2009 13:49:50 -0000
- Subject: [Bug tree-optimization/39204] [4.4 Regression] ICE in compute_attic
- References: <bug-39204-87@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #13 from rguenth at gcc dot gnu dot org 2009-02-17 13:49 -------
This one seems to fix it
Index: tree-ssa-pre.c
===================================================================
--- tree-ssa-pre.c (revision 144227)
+++ tree-ssa-pre.c (working copy)
@@ -1707,6 +1707,9 @@ phi_translate_1 (pre_expr expr, bitmap_s
tree def = PHI_ARG_DEF (phi, e->dest_idx);
pre_expr newexpr;
+ if (TREE_CODE (def) == SSA_NAME)
+ def = VN_INFO (def)->valnum;
+
/* Handle constant. */
if (is_gimple_min_invariant (def))
return get_or_alloc_expr_for_constant (def);
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39204