llvm-project/llvm/test/Other/largest-scc-stat.ll
Arthur Eubanks ab098a7ebf
[CGSCC] Add statistic on largest SCC visited (#128073)
To help debugging long compile times.
2025-02-21 09:13:11 -08:00

19 lines
502 B
LLVM

; REQUIRES: asserts
; RUN: opt -passes='no-op-cgscc' -disable-output -stats < %s 2>&1 | FileCheck %s --check-prefix=ONE
; RUN: opt -passes='cgscc(instcombine)' -disable-output -stats < %s 2>&1 | FileCheck %s --check-prefix=TWO
; ONE: 1 cgscc - Number of functions in the largest SCC
; TWO: 2 cgscc - Number of functions in the largest SCC
define void @f1() {
%f = bitcast ptr @f2 to ptr
call void %f()
ret void
}
define void @f2() {
%f = bitcast ptr @f1 to ptr
call void %f()
ret void
}