1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00
llvm-mirror/test/tools/llvm-opt-report/unrl.test
Hal Finkel e1cb0bd2ab [llvm-opt-report] Don't leave space for opts that never happen
Because screen space is precious, if an optimization (vectorization, for
example) never happens, don't leave empty space for the associated markers on
every line of the output. This makes the output much more compact, and allows
for the later inclusion of markers for more (although perhaps rare)
optimizations.

llvm-svn: 283626
2016-10-08 00:26:54 +00:00

15 lines
454 B
Plaintext

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 |