Skip to contentSkip to conversation

Update usage chain for dead instruction.

PATCH In review Christopher Li 2 participants 2 messages Jan 17, 2007 Sparse checker

lore
Share & tools
lore

Christopher Li

author maintainer
#0 lore raw

PATCH 1/1 Update usage chain for dead instruction.

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

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

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);
#1 lore raw
Quoted 4 lines · Christopher Li

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

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

Merged.

- Josh Triplett