[llvm] [AsmPrinter] Reduce AsmPrinterHandlers virt. fn calls (PR #96785)

Alexis Engelke via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 27 00:29:20 PDT 2024


aengelke wrote:

Removing timers is [very beneficial](http://llvm-compile-time-tracker.com/compare.php?from=54cb5ca9f48fc542b920662a0eee7c0e6f35bee0&to=84cac784134ba4a89a6596323df2c5304857e433&stat=instructions:u) (84ca), removing the virtual function calls has a [minor, but still postive effect](http://llvm-compile-time-tracker.com/compare.php?from=84cac784134ba4a89a6596323df2c5304857e433&to=46aab9a29b5ee06ed63c79f35bf9413827b28ee5&stat=instructions:u) on the instruction count (46aa).

```
Commit      stage1-O3        stage1-ReleaseThinLTO   stage1-ReleaseLTO-g     stage1-O0-g     stage2-O3        stage2-O0-g
46aab9a29b  62542M (-0.02%)  80380M (+0.00%)         93660M (+0.01%)         19172M (-0.04%) 55318M (-0.00%)  16856M (+0.01%)
84cac78413  62556M (-0.02%)  80379M (-0.02%)         93650M (-0.10%)         19181M (-0.26%) 55318M (+0.00%)  16854M (-0.18%)
54cb5ca9f4  62570M           80398M                  93744M                  19230M          55316M           16884M
```

https://github.com/llvm/llvm-project/pull/96785


More information about the llvm-commits mailing list