tarvals are unique no need to use tarval_cmp for equality checks
authorMatthias Braun <matze@braunis.de>
Thu, 20 Oct 2011 15:57:22 +0000 (17:57 +0200)
committerMatthias Braun <matze@braunis.de>
Thu, 20 Oct 2011 17:32:25 +0000 (19:32 +0200)
ir/ana/vrp.c

index f6e01cd..dd877b7 100644 (file)
@@ -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;
                }