diff options
Diffstat (limited to 'test/Transforms/PGOProfile/infinite_loop_gen.ll')
-rw-r--r-- | test/Transforms/PGOProfile/infinite_loop_gen.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/Transforms/PGOProfile/infinite_loop_gen.ll b/test/Transforms/PGOProfile/infinite_loop_gen.ll new file mode 100644 index 00000000000..4c5cb483a5d --- /dev/null +++ b/test/Transforms/PGOProfile/infinite_loop_gen.ll @@ -0,0 +1,17 @@ +; 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 } + |