From: Matthias Braun Date: Thu, 20 Oct 2011 15:57:22 +0000 (+0200) Subject: tarvals are unique no need to use tarval_cmp for equality checks X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=a53a89cf59283fb4913bb66ba3860a14c9166dc5;p=libfirm tarvals are unique no need to use tarval_cmp for equality checks --- diff --git a/ir/ana/vrp.c b/ir/ana/vrp.c index f6e01cd51..dd877b738 100644 --- a/ir/ana/vrp.c +++ b/ir/ana/vrp.c @@ -424,7 +424,7 @@ static int vrp_update_node(ir_vrp_info *info, ir_node *node) /* Merge the newly calculated values with those that might already exist*/ if (new_bits_set != tarval_bad) { new_bits_set = tarval_or(new_bits_set, vrp->bits_set); - if (tarval_cmp(new_bits_set, vrp->bits_set) != ir_relation_equal) { + if (new_bits_set != vrp->bits_set) { something_changed = 1; vrp->bits_set = new_bits_set; } @@ -432,7 +432,7 @@ static int vrp_update_node(ir_vrp_info *info, ir_node *node) if (new_bits_not_set != tarval_bad) { new_bits_not_set = tarval_and(new_bits_not_set, vrp->bits_not_set); - if (tarval_cmp(new_bits_not_set, vrp->bits_not_set) != ir_relation_equal) { + if (new_bits_not_set != vrp->bits_not_set) { something_changed = 1; vrp->bits_not_set = new_bits_not_set; }