From 9714133875a19fcb1258b79d8c035d7a8d240d61 Mon Sep 17 00:00:00 2001 From: Daniel Berlin Date: Sun, 19 Sep 2004 13:57:35 +0000 Subject: [PATCH] tree-ssa-pre.c (insert_into_set): Don't put is_gimple_min_invariant values into the set. 2004-09-19 Daniel Berlin * tree-ssa-pre.c (insert_into_set): Don't put is_gimple_min_invariant values into the set. From-SVN: r87725 --- gcc/ChangeLog | 5 +++++ gcc/tree-ssa-pre.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 32f98f309bb..4863acc6929 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-09-19 Daniel Berlin + + * tree-ssa-pre.c (insert_into_set): Don't put + is_gimple_min_invariant values into the set. + 2004-09-19 Andreas Jaeger * 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 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 -- 2.30.2