[llvm] [MC, X86] emitInstruction: remove virtual function calls due to Intel JCC Erratum (PR #96835)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 20 01:08:40 PDT 2025
MaskRay wrote:
To further optimize the X86MCCodeEmitter::encodeInstruction (based on the changes in https://reviews.llvm.org/D145792 , where SmallVectorImpl replaced raw_ostream), we can leverage the fixed maximum instruction+prefix length and simplify buffer management. Assume the caller provides a sufficiently large buffer (trailing data of MCFragment, using a special bump allocator) and only begin and size are needed.
https://github.com/llvm/llvm-project/pull/96835
More information about the llvm-commits
mailing list