mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 10:33:59 -05:00
Uses a prefix tree to find replacements in each line, instead of looping over all replacements for all lines. Adds a large test (which was part of bug 1336). On my machine it used to take 45s to process that test, now it takes ~1.5s. Skip demangle replacement entirely if there's no demangling to be done. CC @apmorton Co-authored-by: partouf <partouf@gmail.com>
26 lines
533 B
NASM
Generated
26 lines
533 B
NASM
Generated
_Z2aai:
|
|
push rbp
|
|
mov rbp, rsp
|
|
mov DWORD PTR [rbp-4], edi
|
|
nop
|
|
pop rbp
|
|
ret
|
|
_Z2aaii:
|
|
push rbp
|
|
mov rbp, rsp
|
|
mov DWORD PTR [rbp-4], edi
|
|
mov DWORD PTR [rbp-8], esi
|
|
nop
|
|
pop rbp
|
|
ret
|
|
main:
|
|
push rbp
|
|
mov rbp, rsp
|
|
mov esi, 1
|
|
mov edi, 0
|
|
call _Z2aaii
|
|
mov edi, 1
|
|
call _Z2aai
|
|
mov eax, 0
|
|
pop rbp
|
|
ret |