19 lines · plain
1; REQUIRES: asserts2; RUN: opt -passes='no-op-cgscc' -disable-output -stats < %s 2>&1 | FileCheck %s --check-prefix=ONE3; RUN: opt -passes='cgscc(instcombine)' -disable-output -stats < %s 2>&1 | FileCheck %s --check-prefix=TWO4 5; ONE: 1 cgscc - Number of functions in the largest SCC6; TWO: 2 cgscc - Number of functions in the largest SCC7 8define void @f1() {9 %f = bitcast ptr @f2 to ptr10 call void %f()11 ret void12}13 14define void @f2() {15 %f = bitcast ptr @f1 to ptr16 call void %f()17 ret void18}19