1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00
llvm-mirror/test/Transforms/PGOProfile/infinite_loop_gen.ll
2017-12-18 17:56:19 +00:00

18 lines
383 B
LLVM

; RUN: opt < %s -pgo-instr-gen -S -o - | FileCheck %s
define void @foo() {
entry:
br label %while.body
; CHECK: llvm.instrprof.increment
while.body: ; preds = %entry, %while.body
; CHECK: llvm.instrprof.increment
call void (...) @bar() #2
br label %while.body
}
declare void @bar(...)
attributes #0 = { nounwind }