From 0e442ef38d1e3d3eda950eee407c974971b2ffa4 Mon Sep 17 00:00:00 2001 From: Sebastian Hack Date: Fri, 15 Jul 2005 14:04:17 +0000 Subject: [PATCH] Fixed a bug --- ir/be/beirgmod.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ir/be/beirgmod.c b/ir/be/beirgmod.c index 4e10e9a92..ce51f3459 100644 --- a/ir/be/beirgmod.c +++ b/ir/be/beirgmod.c @@ -200,8 +200,12 @@ static void place_phi_functions(ir_node *orig, pset *copies, pset_insert_ptr(copies, phi); pset_insert_ptr(copy_blocks, y); - /* Insert the phi node into the schedule */ - sched_add_before(sched_first(y), phi); + /* + * Insert the phi node into the schedule if it + * can occur there (PhiM's are not to put into a schedule. + */ + if(to_appear_in_schedule(phi)) + sched_add_before(sched_first(y), phi); /* Insert the phi node in the phi blocks set. */ pset_insert_ptr(phi_blocks, y); -- 2.20.1