Before sample pgo annotation, do not inline a function that has no debug info. (NFC)
If there is no debug info in the callee, inlining it will not help annotator. This avoids infinite loop as reported in PR/31119.
llvm-svn: 287710
diff --git a/llvm/test/Transforms/SampleProfile/Inputs/nodebug.prof b/llvm/test/Transforms/SampleProfile/Inputs/nodebug.prof
new file mode 100644
index 0000000..4859603
--- /dev/null
+++ b/llvm/test/Transforms/SampleProfile/Inputs/nodebug.prof
@@ -0,0 +1,2 @@
+foo:100:10
+ 0: bar:10