[llvm] [AsmPrinter] Reduce AsmPrinterHandlers virt. fn calls (PR #96785)
Alexis Engelke via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 27 09:52:37 PDT 2024
aengelke wrote:
e8dd2847ff3eb orginally introduced Dwarf timers in 2009. 6e6d1b2481b13 splitted timers between debug info and exception writing in 2009. f8dba24a9bba7 moved timers from DwarfDebug to AsmPrinter in 2010. It also introduced timers per instruction (back then called begin/endScope), which is currently the main performance problem. The commit message gives no reason for this. Later, timers were refactored multiple times and kept (NB: 1cd1444449cb6 introduced AsmPrinterHandler, generalizing things).
I think the timers per instruction are just there, because someone added them. I don't know how much use these timers see, because apart from a few refactoring, they didn't seem to get many changes.
https://github.com/llvm/llvm-project/pull/96785
More information about the llvm-commits
mailing list