* tree-ssa-pre.c (phi_translate_set): Add constants to phi
translation cache.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141182
138bc75d-0d04-0410-961f-
82ee72b054a4
+2008-10-16 Daniel Berlin <dberlin@dberlin.org>
+
+ * tree-ssa-pre.c (phi_translate_set): Add constants to phi
+ translation cache.
+
2008-10-16 Joseph Myers <joseph@codesourcery.com>
PR c/33192
pre_expr translated;
translated = phi_translate (expr, set, NULL, pred, phiblock);
- /* Don't add constants or empty translations to the cache, since
- we won't look them up that way, or use the result, anyway. */
- if (translated && !value_id_constant_p (get_expr_value_id (translated)))
+ /* Don't add empty translations to the cache */
+ if (translated)
phi_trans_add (expr, translated, pred);
if (translated != NULL)