@@ -324,24 +324,16 @@ int kill_insn(struct instruction *insn, int force)
case OP_UNOP ... OP_UNOP_END:
case OP_SLICE:
- kill_use(&insn->src1);
- break;
-
- case OP_PHI:
- kill_use_list(insn->phi_list);
- break;
case OP_PHISOURCE:
- kill_use(&insn->phi_src);
- break;
-
case OP_SYMADDR:
- kill_use(&insn->src);
- break;
-
case OP_CBR:
case OP_SWITCH:
case OP_COMPUTEDGOTO:
- kill_use(&insn->cond);
+ kill_use(&insn->src1);
+ break;
+
+ case OP_PHI:
+ kill_use_list(insn->phi_list);
break;
case OP_CALL:
In instructions, the first pseudo operands exist under different names (.src1, .src, .cond, .phi_src) all aliased to each other. Use this to simplify unops and others instructions with a single pseudo operand. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> --- simplify.c | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-)