diff options
| -rw-r--r-- | Documentation/IR.md | 6 | ||||
| -rw-r--r-- | example.c | 2 | ||||
| -rw-r--r-- | flow.c | 4 | ||||
| -rw-r--r-- | linearize.c | 6 | ||||
| -rw-r--r-- | linearize.h | 2 | ||||
| -rw-r--r-- | liveness.c | 2 | ||||
| -rw-r--r-- | sparse-llvm.c | 6 |
7 files changed, 3 insertions, 25 deletions
diff --git a/Documentation/IR.md b/Documentation/IR.md index 08203fee..44893ade 100644 --- a/Documentation/IR.md +++ b/Documentation/IR.md @@ -351,12 +351,6 @@ Invalid operation (should never be generated). #### OP_NOP No-op (should never be generated). -#### OP_SNOP -Store no-op (removed store operation). - -#### OP_LNOP -Load no-op (removed load operation). - #### OP_DEATHNOTE Annotation telling the pseudo will be death after the next instruction (other than some other annotation, that is). @@ -88,8 +88,6 @@ static const char *opcodes[] = { [OP_VANEXT] = "va_next", [OP_VAARG] = "va_arg", [OP_SLICE] = "slice", - [OP_SNOP] = "snop", - [OP_LNOP] = "lnop", [OP_NOP] = "nop", [OP_DEATHNOTE] = "dead", [OP_ASM] = "asm", @@ -690,8 +690,6 @@ static void simplify_one_symbol(struct entrypoint *ep, struct symbol *sym) mod |= MOD_ADDRESSABLE; goto external_visibility; case OP_NOP: - case OP_SNOP: - case OP_LNOP: case OP_PHI: continue; default: @@ -963,7 +961,7 @@ void pack_basic_blocks(struct entrypoint *ep) if (!first->bb) continue; switch (first->opcode) { - case OP_NOP: case OP_LNOP: case OP_SNOP: + case OP_NOP: case OP_INLINED_CALL: continue; case OP_CBR: diff --git a/linearize.c b/linearize.c index 63abe7a9..6509fa03 100644 --- a/linearize.c +++ b/linearize.c @@ -265,8 +265,6 @@ static const char *opcodes[] = { [OP_VANEXT] = "va_next", [OP_VAARG] = "va_arg", [OP_SLICE] = "slice", - [OP_SNOP] = "snop", - [OP_LNOP] = "lnop", [OP_NOP] = "nop", [OP_DEATHNOTE] = "dead", [OP_ASM] = "asm", @@ -428,10 +426,10 @@ const char *show_instruction(struct instruction *insn) } END_FOR_EACH_PTR(phi); break; } - case OP_LOAD: case OP_LNOP: + case OP_LOAD: buf += sprintf(buf, "%s <- %d[%s]", show_pseudo(insn->target), insn->offset, show_pseudo(insn->src)); break; - case OP_STORE: case OP_SNOP: + case OP_STORE: buf += sprintf(buf, "%s -> %d[%s]", show_pseudo(insn->target), insn->offset, show_pseudo(insn->src)); break; case OP_INLINED_CALL: diff --git a/linearize.h b/linearize.h index e27de859..01f459ab 100644 --- a/linearize.h +++ b/linearize.h @@ -234,8 +234,6 @@ enum opcode { OP_VANEXT, OP_VAARG, OP_SLICE, - OP_SNOP, - OP_LNOP, OP_NOP, OP_DEATHNOTE, OP_ASM, @@ -151,8 +151,6 @@ static void track_instruction_usage(struct basic_block *bb, struct instruction * case OP_GET_ELEMENT_PTR: case OP_VANEXT: case OP_VAARG: - case OP_SNOP: - case OP_LNOP: case OP_NOP: case OP_CONTEXT: break; diff --git a/sparse-llvm.c b/sparse-llvm.c index 692c49f8..a9475a84 100644 --- a/sparse-llvm.c +++ b/sparse-llvm.c @@ -1013,15 +1013,9 @@ static void output_insn(struct function *fn, struct instruction *insn) case OP_LOAD: output_op_load(fn, insn); break; - case OP_LNOP: - assert(0); - break; case OP_STORE: output_op_store(fn, insn); break; - case OP_SNOP: - assert(0); - break; case OP_INLINED_CALL: break; case OP_CALL: |
