[PowerPC] Add statistics to show the number of entries in the TOC.
authorStefan Pintilie <stefanp@ca.ibm.com>
Fri, 31 Mar 2023 18:42:58 +0000 (14:42 -0400)
committerStefan Pintilie <stefanp@ca.ibm.com>
Mon, 3 Apr 2023 18:20:51 +0000 (14:20 -0400)
commit398effac36a1cdae8ae2d06cd61a7ade34c154b1
tree17e41c97ab0dfcd4c6720d80aebfeb4cd9c8d193
parente9b394b08eb6db5aa225441cf3fb9d4380ff4533
[PowerPC] Add statistics to show the number of entries in the TOC.

On Power PC some data is stored in the TOC. This pass adds statistics
to show how many entries are emitted to the TOC and what types of
entries those are.

Reviewed By: amyk

Differential Revision: https://reviews.llvm.org/D146325
llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
llvm/test/CodeGen/PowerPC/ppc-TOC-stats.ll [new file with mode: 0644]