Test lower_perm_opt like an enum, not a bitset.
authorChristoph Mallon <christoph.mallon@gmx.de>
Wed, 27 Jul 2011 14:59:14 +0000 (16:59 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Wed, 27 Jul 2011 16:14:47 +0000 (18:14 +0200)
ir/be/bechordal_main.c

index 90bb14c..35b86f7 100644 (file)
@@ -448,8 +448,7 @@ static void be_ra_chordal_main(ir_graph *irg)
        be_timer_pop(T_VERIFY);
 
        be_timer_push(T_RA_EPILOG);
-       lower_nodes_after_ra(irg,
-                            options.lower_perm_opt&BE_CH_LOWER_PERM_COPY ? 1 : 0);
+       lower_nodes_after_ra(irg, options.lower_perm_opt == BE_CH_LOWER_PERM_COPY);
        dump(BE_CH_DUMP_LOWER, irg, NULL, "belower-after-ra");
 
        obstack_free(&obst, NULL);