linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 5] Update usage chain for dead instruction.
@ 2007-01-17  2:38 Christopher Li
  2007-01-17  5:20 ` Josh Triplett
  0 siblings, 1 reply; 2+ messages in thread
From: Christopher Li @ 2007-01-17  2:38 UTC (permalink / raw)
  To: linux-sparse; +Cc: Josh Triplett


Branch like that:
br %c, 0x10, 0x10

Will be simplify and removed. But the usage information is not updated.

Signed-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] 2+ messages in thread

end of thread, other threads:[~2007-01-17  5:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-17  2:38 [PATCH 5] Update usage chain for dead instruction Christopher Li
2007-01-17  5:20 ` Josh Triplett

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