--- /dev/null
+--- !Missed
+Pass: inline
+Name: NoDefinition
+DebugLoc: { File: Inputs/unrl.c, Line: 5, Column: 5 }
+Function: foo
+Args:
+ - Callee: bar
+ - String: ' will not be inlined into '
+ - Caller: foo
+ - String: ' because its definition is unavailable'
+...
+--- !Missed
+Pass: inline
+Name: NoDefinition
+DebugLoc: { File: Inputs/unrl.c, Line: 8, Column: 5 }
+Function: foo
+Args:
+ - Callee: bar
+ - String: ' will not be inlined into '
+ - Caller: foo
+ - String: ' because its definition is unavailable'
+...
+--- !Passed
+Pass: loop-unroll
+Name: FullyUnrolled
+DebugLoc: { File: Inputs/unrl.c, Line: 7, Column: 3 }
+Function: foo
+Args:
+ - String: 'completely unrolled loop with '
+ - UnrollCount: '11'
+ - String: ' iterations'
+...
+--- !Passed
+Pass: loop-unroll
+Name: FullyUnrolled
+DebugLoc: { File: Inputs/unrl.c, Line: 4, Column: 3 }
+Function: foo
+Args:
+ - String: 'completely unrolled loop with '
+ - UnrollCount: '5'
+ - String: ' iterations'
+...
--- /dev/null
+RUN: llvm-opt-report -r %p %p/Inputs/unrl.yaml | FileCheck -strict-whitespace %s
+
+; CHECK: < {{.*[/\]}}unrl.c
+; CHECK-NEXT: 1 | void bar();
+; CHECK-NEXT: 2 |
+; CHECK-NEXT: 3 | void foo() {
+; CHECK-NEXT: 4 U5 | for (int i = 0; i < 5; ++i)
+; CHECK-NEXT: 5 | bar();
+; CHECK-NEXT: 6 |
+; CHECK-NEXT: 7 U11 | for (int i = 0; i < 11; ++i)
+; CHECK-NEXT: 8 | bar();
+; CHECK-NEXT: 9 | }
+; CHECK-NEXT: 10 |
+