llvm-project/llvm/test/Other/print-scc-size.ll
Arthur Eubanks 8c6305b8b4 [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
2022-07-19 09:00:37 -07:00

19 lines
323 B
LLVM

; RUN: opt -S -debug-pass-manager -passes=no-op-cgscc < %s 2>&1 | FileCheck %s
; CHECK: Running pass: NoOpCGSCCPass on (f) (1 node)
; CHECK: Running pass: NoOpCGSCCPass on (g, h) (2 nodes)
define void @f() {
ret void
}
define void @g() {
call void @h()
ret void
}
define void @h() {
call void @g()
ret void
}