diff options
author | Daniel Berlin <dberlin@dberlin.org> | 2004-09-19 13:57:35 +0000 |
---|---|---|
committer | Daniel Berlin <dberlin@gcc.gnu.org> | 2004-09-19 13:57:35 +0000 |
commit | 9714133875a19fcb1258b79d8c035d7a8d240d61 (patch) | |
tree | 97d7f3747b62d5a15a40c87419907d189d5928db /gcc | |
parent | 76fd4fd7e2236413ac2f912f65dae692c171e3ba (diff) | |
download | gcc-9714133875a19fcb1258b79d8c035d7a8d240d61.zip gcc-9714133875a19fcb1258b79d8c035d7a8d240d61.tar.gz gcc-9714133875a19fcb1258b79d8c035d7a8d240d61.tar.bz2 |
tree-ssa-pre.c (insert_into_set): Don't put is_gimple_min_invariant values into the set.
2004-09-19 Daniel Berlin <dberlin@dberlin.org>
* tree-ssa-pre.c (insert_into_set): Don't put
is_gimple_min_invariant values into the set.
From-SVN: r87725
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-ssa-pre.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 32f98f3..4863acc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-09-19 Daniel Berlin <dberlin@dberlin.org> + + * tree-ssa-pre.c (insert_into_set): Don't put + is_gimple_min_invariant values into the set. + 2004-09-19 Andreas Jaeger <aj@suse.de> * tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c index cbaba2c..43257bc 100644 --- a/gcc/tree-ssa-pre.c +++ b/gcc/tree-ssa-pre.c @@ -522,6 +522,9 @@ insert_into_set (value_set_t set, tree expr) value_set_node_t newnode = pool_alloc (value_set_node_pool); tree val = get_value_handle (expr); gcc_assert (val); + + if (is_gimple_min_invariant (val)) + return; /* For indexed sets, insert the value into the set value bitmap. For all sets, add it to the linked list and increment the list |