Remove dead code: tarval_is_long() returns true for mode_P null constants.
authorChristoph Mallon <christoph.mallon@gmx.de>
Mon, 17 Sep 2007 16:29:48 +0000 (16:29 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Mon, 17 Sep 2007 16:29:48 +0000 (16:29 +0000)
[r15844]

ir/be/ia32/ia32_transform.c
ir/be/mips/mips_transform.c

index a8f1b7a..f0d8e56 100644 (file)
@@ -2830,8 +2830,6 @@ ir_node *try_create_Immediate(ir_node *node, char immediate_constraint_type)
                offset = get_Const_tarval(cnst);
                if(tarval_is_long(offset)) {
                        val = get_tarval_long(offset);
                offset = get_Const_tarval(cnst);
                if(tarval_is_long(offset)) {
                        val = get_tarval_long(offset);
-               } else if(tarval_is_null(offset)) {
-                       val = 0;
                } else {
                        ir_fprintf(stderr, "Optimisation Warning: tarval from %+F is not a "
                                   "long?\n", cnst);
                } else {
                        ir_fprintf(stderr, "Optimisation Warning: tarval from %+F is not a "
                                   "long?\n", cnst);
index 9c9e32f..af43e4b 100644 (file)
@@ -124,8 +124,6 @@ static ir_node *try_create_Immediate(ir_node *node)
        tv = get_Const_tarval(node);
        if(tarval_is_long(tv)) {
                val = get_tarval_long(tv);
        tv = get_Const_tarval(node);
        if(tarval_is_long(tv)) {
                val = get_tarval_long(tv);
-       } else if(tarval_is_null(tv)) {
-               val = 0;
        } else {
                ir_fprintf(stderr, "Optimisation Warning: tarval %+F is not a long?\n",
                           node);
        } else {
                ir_fprintf(stderr, "Optimisation Warning: tarval %+F is not a long?\n",
                           node);
@@ -306,8 +304,6 @@ static ir_node* gen_Const(ir_node *node)
 
        if(tarval_is_long(tv)) {
                val = get_tarval_long(tv);
 
        if(tarval_is_long(tv)) {
                val = get_tarval_long(tv);
-       } else if(tarval_is_null(tv)) {
-               val = 0;
        } else {
                panic("Can't get value of tarval %+F\n", node);
        }
        } else {
                panic("Can't get value of tarval %+F\n", node);
        }