Files
compiler-explorer/test/demangle-cases/similar-symbols.asm
Matt Godbolt a9d76dd0df Demangle optimization (#2390)
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>
2021-01-18 11:33:19 -06:00

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