linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] [PATCH 3/4] and other branch usage fix
@ 2006-12-28  9:26 Christopher Li
  0 siblings, 0 replies; only message in thread
From: Christopher Li @ 2006-12-28  9:26 UTC (permalink / raw)
  To: linux-sparse; +Cc: Linus Torvalds, Josh Triplett, Dan Carpenter

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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-12-28  9:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-28  9:26 [RFC] [PATCH 3/4] and other branch usage fix Christopher Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).