pinholeopt

Find shorter versions of the same instructions. Does these optimizations: replaces jmps to the next instruction with NOPs sign extension of modregrm displacement sign extension of immediate data (can't do it for OR, AND, XOR as the opcodes are not defined) short versions for AX EA short versions for reg EA Code is neither removed nor added.

nothrow @safe @trusted
void
pinholeopt
(
code* c
,
block* b
)

Parameters

b block*

block for code (or null)

c code*

code list to optimize

Meta