From a53a89cf59283fb4913bb66ba3860a14c9166dc5 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Thu, 20 Oct 2011 17:57:22 +0200 Subject: [PATCH] tarvals are unique no need to use tarval_cmp for equality checks --- ir/ana/vrp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.20.1