22 lines · plain
1; REQUIRES: asserts2; RUN: opt -passes=count-visits -stats 2>&1 -disable-output < %s | FileCheck %s --check-prefix=ONE3; RUN: opt -passes='cgscc(count-visits)' -stats 2>&1 -disable-output < %s | FileCheck %s --check-prefix=ONE4; RUN: opt -passes='cgscc(count-visits,instcombine)' -stats 2>&1 -disable-output < %s | FileCheck %s --check-prefix=TWO5; RUN: opt -passes='default<O1>' -stats 2>&1 -disable-output < %s | FileCheck %s --check-prefix=PIPELINE6; RUN: opt -passes='default<O3>' -stats 2>&1 -disable-output < %s | FileCheck %s --check-prefix=PIPELINE7 8; ONE: 1 count-visits - Max number of times we visited a function9; TWO: 2 count-visits - Max number of times we visited a function10; PIPELINE: count-visits - Max number of times we visited a function11 12define void @f() {13 %a = bitcast ptr @g to ptr14 call void %a()15 ret void16}17 18define void @g() {19 call void @f()20 ret void21}22