
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
19 lines
323 B
LLVM
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
|
|
}
|