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 @safe @trusted
void
pinholeopt
(
code* c
,
block* b
)

Parameters

b block*

block for code (or null)

c code*

code list to optimize

Suggestion Box / Bug Report