diff options
| author | Adrian Prantl <aprantl@apple.com> | 2017-08-30 18:06:51 +0000 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2017-08-30 18:06:51 +0000 |
| commit | 05782218abd549e0c1bc77032fa9b55526371cfd (patch) | |
| tree | 1cd1e0e5ace565ad80e6e9053bb7d858a38362b5 /llvm/test/Transforms/LoopVectorize | |
| parent | 1a4cbbe49fcaebe63246c784983556528bcb27d8 (diff) | |
| download | bcm5719-llvm-05782218abd549e0c1bc77032fa9b55526371cfd.tar.gz bcm5719-llvm-05782218abd549e0c1bc77032fa9b55526371cfd.zip | |
Canonicalize the representation of empty an expression in DIGlobalVariableExpression
This change simplifies code that has to deal with
DIGlobalVariableExpression and mirrors how we treat DIExpressions in
debug info intrinsics. Before this change there were two ways of
representing empty expressions on globals, a nullptr and an empty
!DIExpression().
If someone needs to upgrade out-of-tree testcases:
perl -pi -e 's/(!DIGlobalVariableExpression\(var: ![0-9]*)\)/\1, expr: !DIExpression())/g' <MYTEST.ll>
will catch 95%.
llvm-svn: 312144
Diffstat (limited to 'llvm/test/Transforms/LoopVectorize')
| -rw-r--r-- | llvm/test/Transforms/LoopVectorize/dbg.value.ll | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/Transforms/LoopVectorize/dbg.value.ll b/llvm/test/Transforms/LoopVectorize/dbg.value.ll index 6ae0d8a5bf5..ae44845fde9 100644 --- a/llvm/test/Transforms/LoopVectorize/dbg.value.ll +++ b/llvm/test/Transforms/LoopVectorize/dbg.value.ll @@ -48,16 +48,16 @@ attributes #1 = { nounwind readnone } !llvm.dbg.cu = !{!11} !llvm.module.flags = !{!14} -!0 = !DIGlobalVariableExpression(var: !1) +!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) !1 = !DIGlobalVariable(name: "A", scope: null, file: !2, line: 1, type: !3, isLocal: false, isDefinition: true) !2 = !DIFile(filename: "test", directory: "/path/to/somewhere") !3 = !DICompositeType(tag: DW_TAG_array_type, baseType: !4, size: 32768, align: 32, elements: !5) !4 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) !5 = !{!6} !6 = !{i32 786465, i64 0, i64 1024} -!7 = !DIGlobalVariableExpression(var: !8) +!7 = !DIGlobalVariableExpression(var: !8, expr: !DIExpression()) !8 = !DIGlobalVariable(name: "B", scope: null, file: !2, line: 2, type: !3, isLocal: false, isDefinition: true) -!9 = !DIGlobalVariableExpression(var: !10) +!9 = !DIGlobalVariableExpression(var: !10, expr: !DIExpression()) !10 = !DIGlobalVariable(name: "C", scope: null, file: !2, line: 3, type: !3, isLocal: false, isDefinition: true) !11 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !2, producer: "clang", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !12, retainedTypes: !12, globals: !13) !12 = !{} |

