llvm-project
49cacf03 - X86MCCodeEmitter: Reduce per-instruction overhead. NFC (#246529)

Commit
1 day ago
X86MCCodeEmitter: Reduce per-instruction overhead. NFC (#246529) * Look up MCInstrDesc and the operand bias once and pass them down. * Skip is16BitMemOperand in 64-bit mode. * Check for high/low byte registers only in the register operands emitREXPrefix's form switch visits, instead of scanning every operand. * Compute VEX/EVEX payloads only for those prefixes. * Emit disp8 directly. instructions:u (millions): ``` before after llc -O0 sqlite3 1366.2 1354.0 llc -O0 tramp3d 6302.0 6277.3 llvm-mc tramp3d.s 4504.9 4477.0 ``` LLM-aided
Author
Parents
Loading