X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=testprograms%2Fplace_with_dead_block_example.c;h=fff01721a41a765a321352adf170ca9d35446fc3;hb=040d31fbd4adab332e88c6cfb12b0e8e67a40748;hp=ee3574e3e64d4f8e0bb4f78f8e4463eee3692c21;hpb=b29be0767a1fd82929f7dce37381d2e66550be29;p=libfirm diff --git a/testprograms/place_with_dead_block_example.c b/testprograms/place_with_dead_block_example.c index ee3574e3e..fff01721a 100644 --- a/testprograms/place_with_dead_block_example.c +++ b/testprograms/place_with_dead_block_example.c @@ -90,7 +90,7 @@ int main(int argc, char **argv) /* Generate the two constants. A SymConst can not be constant evaluated. */ sym.type_p = new_type_class(new_id_from_str("SomeClass")); a = new_Const (mode_Is, new_tarval_from_long (0, mode_Is)); - b = new_SymConst (sym, symconst_size); + b = new_SymConst (sym, symconst_type_size); /* Generate the Conv with Bad as block */ a = new_Conv(b, mode_Ls); @@ -103,7 +103,7 @@ int main(int argc, char **argv) mature_immBlock (get_irg_current_block(irg)); add_immBlock_pred (get_irg_end_block(irg), x); mature_immBlock (get_irg_end_block(irg)); - finalize_cons (irg); + irg_finalize_cons (irg); irg_vrfy(irg); printf("Done building the graph. Dumping it.\n"); @@ -111,6 +111,7 @@ int main(int argc, char **argv) dump_ir_graph (irg, 0); printf("Code placement ...\n"); + set_opt_global_cse(1); /* need this option for code placement */ place_code(irg); dump_ir_block_graph (irg, "-placed");