summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-pre.c
diff options
context:
space:
mode:
authordberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-19 13:57:35 +0000
committerdberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-19 13:57:35 +0000
commitc9cbb533d375a6102745288983e820ff3a52f66e (patch)
tree97d7f3747b62d5a15a40c87419907d189d5928db /gcc/tree-ssa-pre.c
parentf1a82013aaa44a45132c29242669ee5807ad8409 (diff)
downloadgcc-c9cbb533d375a6102745288983e820ff3a52f66e.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87725 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-pre.c')
-rw-r--r--gcc/tree-ssa-pre.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c
index cbaba2c2117..43257bc1093 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