diff options
author | quou <quou@disroot.org> | 2023-05-27 10:30:55 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2023-05-27 10:30:55 +1000 |
commit | 32d8c607e49ecaedc001196aaeb46e9a665311b5 (patch) | |
tree | 003e35e59e46d2cf13fb9df6ef402cb9588399fb | |
parent | 2a1419ccca1e04f822b1d5b5f91a72fdef7e48c4 (diff) |
Remove some dead code from the compiler.
-rw-r--r-- | compiler.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -204,12 +204,9 @@ void gen_val(Compiler* c, Stack_Value v, unsigned char r) { c->numbers[v.idx], regs[r] ); - } else if (v.reg != r) { - /*printf( - "mov %%rax, %%%s\n", - regs[r] - );*/ } + /* The result of the last sub-expression is already + * in the rax register, no need to do anything. */ } void generate(Compiler* c) { |