[NewPM] Print function/SCC size with -debug-pass-manager
authorArthur Eubanks <aeubanks@google.com>
Thu, 16 Jun 2022 20:30:12 +0000 (13:30 -0700)
committerArthur Eubanks <aeubanks@google.com>
Tue, 19 Jul 2022 16:00:37 +0000 (09:00 -0700)
commit8c6305b8b485c26d52409790ffdabe0898af81a1
tree2fe838dcb17e0a3dd9c84188e17a42560d3868d6
parent71da3914c1b6a3f616e048bb5bd28440290b30f7
[NewPM] Print function/SCC size with -debug-pass-manager

This is helpful for debugging issues with very large functions or SCC.
Also helpful when function names are very large and it's hard to tell the number of nodes in an SCC.

Reviewed By: hans

Differential Revision: https://reviews.llvm.org/D128003
llvm/lib/Passes/StandardInstrumentations.cpp
llvm/test/Other/print-function-size.ll [new file with mode: 0644]
llvm/test/Other/print-scc-size.ll [new file with mode: 0644]