[Bug tree-optimization/39204] [4.4 Regression] ICE in compute_attic
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Feb 17 13:50:00 GMT 2009
------- 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
More information about the Gcc-bugs
mailing list