mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-07-16 12:29:24 +00:00
Optimize NOT before branch true/false
This commit is contained in:
parent
082f10424e
commit
1f6ed64793
@ -1196,6 +1196,21 @@ int crunch_seq(t_opseq **seq)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break; // GADDR_CODE
|
break; // GADDR_CODE
|
||||||
|
case LOGIC_NOT_CODE:
|
||||||
|
switch (opnext->code)
|
||||||
|
{
|
||||||
|
case BRFALSE_CODE:
|
||||||
|
op->code = BRTRUE_CODE;
|
||||||
|
op->tag = opnext->tag;
|
||||||
|
freeops = 1;
|
||||||
|
break;
|
||||||
|
case BRTRUE_CODE:
|
||||||
|
op->code = BRFALSE_CODE;
|
||||||
|
op->tag = opnext->tag;
|
||||||
|
freeops = 1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break; // LOGIC_NOT_CODE
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
// Free up crunched ops
|
// Free up crunched ops
|
||||||
|
Loading…
Reference in New Issue
Block a user