xref: /llvm-project/llvm/test/Transforms/PGOProfile/infinite_loop_gen.ll (revision b5d884a38c3524fdba82c525f2cd0237e85c60ee)
1*b5d884a3SFangrui Song; RUN: opt < %s -passes=pgo-instr-gen -S | FileCheck %s
2cee313d2SEric Christopher
3cee313d2SEric Christopherdefine void @foo() {
4cee313d2SEric Christopherentry:
5cee313d2SEric Christopher  br label %while.body
6cee313d2SEric Christopher  ; CHECK: llvm.instrprof.increment
7cee313d2SEric Christopher
8cee313d2SEric Christopher    while.body:                                       ; preds = %entry, %while.body
9cee313d2SEric Christopher    ; CHECK: llvm.instrprof.increment
10cee313d2SEric Christopher        call void (...) @bar() #2
11cee313d2SEric Christopher    br label %while.body
12cee313d2SEric Christopher}
13cee313d2SEric Christopher
14cee313d2SEric Christopherdeclare void @bar(...)
15cee313d2SEric Christopher
16cee313d2SEric Christopherattributes #0 = { nounwind }
17cee313d2SEric Christopher
18