Files
compiler-explorer/test/demangle-cases/similar-symbols.asm.demangle
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
545 B
Plaintext
Generated

aa(int):
push rbp
mov rbp, rsp
mov DWORD PTR [rbp-4], edi
nop
pop rbp
ret
aa(int, int):
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 aa(int, int)
mov edi, 1
call aa(int)
mov eax, 0
pop rbp
ret