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.

version(COMPILE)
extern (C++) nothrow
void
pinholeopt
(
code* c
,
block* b
)

Parameters

b
Type: block*

block for code (or null)

c
Type: code*

code list to optimize

Meta