OSDN Git Service

* tree-ssa-ifcombine.c (get_name_for_bit_test): Use
[pf3gnuchains/gcc-fork.git] / gcc / tree-ssa-ifcombine.c
index 4dbe750..93e7810 100644 (file)
@@ -148,8 +148,7 @@ get_name_for_bit_test (tree candidate)
     {
       tree def_stmt = SSA_NAME_DEF_STMT (candidate);
       if (TREE_CODE (def_stmt) == GIMPLE_MODIFY_STMT
-         && (TREE_CODE (GIMPLE_STMT_OPERAND (def_stmt, 1)) == NOP_EXPR
-             || TREE_CODE (GIMPLE_STMT_OPERAND (def_stmt, 1)) == CONVERT_EXPR))
+         && CONVERT_EXPR_P (GIMPLE_STMT_OPERAND (def_stmt, 1)))
        {
          tree rhs = GIMPLE_STMT_OPERAND (def_stmt, 1);
          if (TYPE_PRECISION (TREE_TYPE (rhs))