This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/39204] [4.4 Regression] ICE in compute_attic



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]