[MachineOutliner] Improve mapper statistics
authorJessica Paquette <jpaquette@apple.com>
Sat, 4 Feb 2023 06:26:07 +0000 (22:26 -0800)
committerJessica Paquette <jpaquette@apple.com>
Sat, 4 Feb 2023 06:27:21 +0000 (22:27 -0800)
commit92d3672452db260f431b9219faf57c5f8c7b876b
treece6f16d6e6bbed4e802bb601c39a26837c64fe93
parent16749d28cc56b441dc252f7017fbf532ea41f8c4
[MachineOutliner] Improve mapper statistics

Add a test for statistics as well.

The mapper size stats were nested in a loop unnecessarily. Move them out.

Give existing stats better names, and add one which also tracks the number of
sentinels added.
llvm/lib/CodeGen/MachineOutliner.cpp
llvm/test/CodeGen/AArch64/machine-outliner-mapper-stats.mir [new file with mode: 0644]