Remove dead branch from usage chain.

Branch like the following will get simplify and removed.
But the usage information is not updated.

br %c, 0x10, 0x10

Singed-off-by: Christopher Li <[EMAIL PROTECTED]>

Index: sparse/flow.c
===================================================================
--- sparse.orig/flow.c  2006-12-21 20:48:07.000000000 -0800
+++ sparse/flow.c       2006-12-21 22:20:44.000000000 -0800
@@ -987,7 +987,7 @@ out:
                        replace_bb_in_list(&child->parents, bb, parent, 0);
                } END_FOR_EACH_PTR(child);
 
-               delete_last_instruction(&parent->insns);
+               kill_instruction(delete_last_instruction(&parent->insns));
                FOR_EACH_PTR(bb->insns, insn) {
                        if (insn->bb) {
                                assert(insn->bb == bb);
-
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to