Skip to contentSkip to conversation

and other branch usage fix

RFC PATCH New Christopher Li 1 participant 1 message Dec 28, 2006 Sparse checker

lore
Share & tools
lore

Christopher Li

author maintainer
#0 lore raw

RFC PATCH 3/4 and other branch usage fix

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

flow.c +1 -1
Index: sparse/flow.c
===================================================================
@@ -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);