diff options
author | Daniel Berlin <dberlin@dberlin.org> | 2008-10-16 23:04:03 +0000 |
---|---|---|
committer | Daniel Berlin <dberlin@gcc.gnu.org> | 2008-10-16 23:04:03 +0000 |
commit | de278246dc4990bc1eaaf75ff3025f15ff4b5602 (patch) | |
tree | d5a4067c6719cde9609b07ce2c7d852ee3f17041 | |
parent | afab92d840f37441b76f8f1081ef8588ae354cf1 (diff) | |
download | gcc-de278246dc4990bc1eaaf75ff3025f15ff4b5602.zip gcc-de278246dc4990bc1eaaf75ff3025f15ff4b5602.tar.gz gcc-de278246dc4990bc1eaaf75ff3025f15ff4b5602.tar.bz2 |
tree-ssa-pre.c (phi_translate_set): Add constants to phi translation cache.
2008-10-16 Daniel Berlin <dberlin@dberlin.org>
* tree-ssa-pre.c (phi_translate_set): Add constants to phi
translation cache.
From-SVN: r141182
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-ssa-pre.c | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9fdf2c5..07b3b40 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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 diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c index 84c884b..f57500e 100644 --- a/gcc/tree-ssa-pre.c +++ b/gcc/tree-ssa-pre.c @@ -1745,9 +1745,8 @@ phi_translate_set (bitmap_set_t dest, bitmap_set_t set, basic_block pred, 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) |