mirror of
https://github.com/dschmenk/PLASMA.git
synced 2024-07-19 06:28:56 +00:00
Optimise "CB 1:SHL" to "DUP:ADD"
This saves one byte and by my count is about 11 cycles faster.
This commit is contained in:
parent
91b960f263
commit
8c390cbb07
@ -1053,6 +1053,13 @@ int crunch_seq(t_opseq **seq, int pass)
|
|||||||
freeops = 1;
|
freeops = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (opnext->code == BINARY_CODE(SHL_TOKEN))
|
||||||
|
{
|
||||||
|
op->code = DUP_CODE;
|
||||||
|
opnext->code = BINARY_CODE(ADD_TOKEN);
|
||||||
|
crunched = 1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
switch (opnext->code)
|
switch (opnext->code)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user