[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-sparse
Subject:    [RFC] [PATCH 3/4] and other branch usage fix
From:       Christopher Li <sparse () chrisli ! org>
Date:       2006-12-28 9:26:18
Message-ID: 20061228092618.GD6573 () chrisli ! org
[Download RAW message or body]

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 <sparse@chrisli.org>

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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic