1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/test/tools/llvm-opt-report/Inputs/dm.yaml
Hal Finkel 274ef1457a [llvm-opt-report] Fix context-sensitive lines where nothing happened
Don't print a line multiple times, each for different inlining contexts, if
nothing happened in any context. This prevents situations like this:

 [[
  > main:
 65     |       if ((i * ni + j) % 20 == 0) fprintf
  > print_array:
 65     |       if ((i * ni + j) % 20 == 0) fprintf
 ]]

which could happen if different optimizations were missed in different inlining
contexts.

llvm-svn: 291361
2017-01-07 20:21:17 +00:00

105 lines
3.2 KiB
YAML

--- !Missed
Pass: inline
Name: NoDefinition
DebugLoc: { File: Inputs/dm.c, Line: 3, Column: 12 }
Function: foo
Args:
- Callee: bar
- String: ' will not be inlined into '
- Caller: foo
DebugLoc: { File: Inputs/dm.c, Line: 2, Column: 0 }
- String: ' because its definition is unavailable'
...
--- !Analysis
Pass: inline
Name: CanBeInlined
DebugLoc: { File: Inputs/dm.c, Line: 7, Column: 3 }
Function: quack
Args:
- Callee: foo
DebugLoc: { File: Inputs/dm.c, Line: 2, Column: 0 }
- String: ' can be inlined into '
- Caller: quack
DebugLoc: { File: Inputs/dm.c, Line: 6, Column: 0 }
- String: ' with cost='
- Cost: '-35'
- String: ' (threshold='
- Threshold: '375'
- String: ')'
...
--- !Passed
Pass: inline
Name: Inlined
DebugLoc: { File: Inputs/dm.c, Line: 7, Column: 3 }
Function: quack
Args:
- Callee: foo
DebugLoc: { File: Inputs/dm.c, Line: 2, Column: 0 }
- String: ' inlined into '
- Caller: quack
DebugLoc: { File: Inputs/dm.c, Line: 6, Column: 0 }
...
--- !Analysis
Pass: inline
Name: CanBeInlined
DebugLoc: { File: Inputs/dm.c, Line: 11, Column: 3 }
Function: quack2
Args:
- Callee: foo
DebugLoc: { File: Inputs/dm.c, Line: 2, Column: 0 }
- String: ' can be inlined into '
- Caller: quack2
DebugLoc: { File: Inputs/dm.c, Line: 10, Column: 0 }
- String: ' with cost='
- Cost: '-5'
- String: ' (threshold='
- Threshold: '375'
- String: ')'
...
--- !Passed
Pass: inline
Name: Inlined
DebugLoc: { File: Inputs/dm.c, Line: 11, Column: 3 }
Function: quack2
Args:
- Callee: foo
DebugLoc: { File: Inputs/dm.c, Line: 2, Column: 0 }
- String: ' inlined into '
- Caller: quack2
DebugLoc: { File: Inputs/dm.c, Line: 10, Column: 0 }
...
--- !Analysis
Pass: loop-vectorize
Name: CFGNotUnderstood
DebugLoc: { File: Inputs/dm.c, Line: 3, Column: 28 }
Function: foo
Args:
- String: 'loop not vectorized: '
- String: loop control flow is not understood by vectorizer
...
--- !Missed
Pass: loop-vectorize
Name: MissedDetails
DebugLoc: { File: Inputs/dm.c, Line: 3, Column: 28 }
Function: foo
Args:
- String: loop not vectorized
...
--- !Analysis
Pass: loop-vectorize
Name: CFGNotUnderstood
DebugLoc: { File: Inputs/dm.c, Line: 3, Column: 28 }
Function: quack
Args:
- String: 'loop not vectorized: '
- String: loop control flow is not understood by vectorizer
...
--- !Missed
Pass: loop-vectorize
Name: MissedDetails
DebugLoc: { File: Inputs/dm.c, Line: 3, Column: 28 }
Function: quack
Args:
- String: loop not vectorized
...