Arthur Eubanks 60e4af7ab8 [CallGraph] Port -print-callgraph-sccs to new pass manager
And remove the legacy opt-specific pass.

Reviewed By: asbirlea

Differential Revision: https://reviews.llvm.org/D135487
2022-10-11 14:43:16 -07:00

20 lines
306 B
LLVM

; RUN: opt -S -passes=print-callgraph-sccs -disable-output < %s 2>&1 | FileCheck %s
; CHECK: SCC #1: g, f
; CHECK: SCC #2: h
; CHECK: SCC #3: external node
define void @f() {
call void @g()
ret void
}
define void @g() {
call void @f()
ret void
}
define void @h() {
call void @f()
ret void
}