From: Götz Lindenmaier Date: Tue, 11 May 2004 13:08:02 +0000 (+0000) Subject: in search of an error ... X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=ac05165348caed7dfe6895d50f36ef38d37d5df3;p=libfirm in search of an error ... [r2869] --- diff --git a/ir/ana/irscc.c b/ir/ana/irscc.c index 31c6e33f3..8bce16a5b 100644 --- a/ir/ana/irscc.c +++ b/ir/ana/irscc.c @@ -591,10 +591,19 @@ static bool is_outermost_Start(ir_node *n) { /* Don't walk from nodes to blocks except for Control flow operations. */ static INLINE int get_start_index(ir_node *n) { - if (is_cfop(n) || is_fragile_op(n) || intern_get_irn_op(n) == op_Start) + /* if (is_cfop(n) || is_fragile_op(n) || intern_get_irn_op(n) == op_Start) + // this should be sufficient. return -1; else return 0; + */ + if (intern_get_irn_op(n) == op_Phi || + intern_get_irn_op(n) == op_Block || + (intern_get_irn_op(n) == op_Filter && interprocedural_view)) + // Here we could test for backedge at -1 which is illegal + return 0; + else + return -1; } #if 0 /* Returns current_ir_graph and set it to the irg of predecessor index