From c51714a0c6b9682588de2cd14bf94a74ff533bb9 Mon Sep 17 00:00:00 2001
From: "Duncan P. N. Exon Smith" <dexonsmith@apple.com>
Date: Fri, 31 Jul 2015 23:58:50 +0000
Subject: [PATCH] Fix polly tests after LLVM IR change in r243774

llvm-svn: 243801
---
 .../CodeGen/LoopParallelMD/do_not_mutate_debug_info.ll    | 2 +-
 polly/test/Isl/CodeGen/debug-intrinsics.ll                | 6 +++---
 polly/test/ScopDetectionDiagnostics/ReportAlias-01.ll     | 6 +++---
 polly/test/ScopDetectionDiagnostics/ReportLoopBound-01.ll | 6 +++---
 .../ScopDetectionDiagnostics/ReportNonAffineAccess-01.ll  | 4 ++--
 polly/test/ScopDetectionDiagnostics/ReportUnprofitable.ll | 8 ++++----
 .../ScopDetectionDiagnostics/ReportVariantBasePtr-01.ll   | 4 ++--
 7 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/polly/test/Isl/CodeGen/LoopParallelMD/do_not_mutate_debug_info.ll b/polly/test/Isl/CodeGen/LoopParallelMD/do_not_mutate_debug_info.ll
index 11ff241cfdb8..6140781591a2 100644
--- a/polly/test/Isl/CodeGen/LoopParallelMD/do_not_mutate_debug_info.ll
+++ b/polly/test/Isl/CodeGen/LoopParallelMD/do_not_mutate_debug_info.ll
@@ -44,7 +44,7 @@ declare void @llvm.dbg.value(metadata, i64, metadata, metadata)
 !6 = !DISubroutineType(types: !7)
 !7 = !{null}
 !8 = !{!9}
-!9 = !DILocalVariable(tag: DW_TAG_auto_variable, name: "i", line: 4, scope: !10, file: !5, type: !11)
+!9 = !DILocalVariable(name: "i", line: 4, scope: !10, file: !5, type: !11)
 !10 = distinct !DILexicalBlock(line: 4, column: 3, file: !1, scope: !4)
 !11 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
 !12 = !{!13}
diff --git a/polly/test/Isl/CodeGen/debug-intrinsics.ll b/polly/test/Isl/CodeGen/debug-intrinsics.ll
index 14b70a7ba4c8..b52ff5d860f5 100644
--- a/polly/test/Isl/CodeGen/debug-intrinsics.ll
+++ b/polly/test/Isl/CodeGen/debug-intrinsics.ll
@@ -68,11 +68,11 @@ attributes #1 = { nounwind readnone }
 !11 = !{i32 2, !"Dwarf Version", i32 4}
 !12 = !{i32 1, !"Debug Info Version", i32 3}
 !13 = !{!"clang version 3.5 "}
-!14 = !DILocalVariable(tag: DW_TAG_arg_variable, name: "A", line: 1, arg: 1, scope: !4, file: !5, type: !8)
+!14 = !DILocalVariable(name: "A", line: 1, arg: 1, scope: !4, file: !5, type: !8)
 !15 = !DILocation(line: 1, scope: !4)
-!16 = !DILocalVariable(tag: DW_TAG_arg_variable, name: "N", line: 1, arg: 2, scope: !4, file: !5, type: !10)
+!16 = !DILocalVariable(name: "N", line: 1, arg: 2, scope: !4, file: !5, type: !10)
 !17 = !{i64 0}
-!18 = !DILocalVariable(tag: DW_TAG_auto_variable, name: "i", line: 2, scope: !19, file: !5, type: !10)
+!18 = !DILocalVariable(name: "i", line: 2, scope: !19, file: !5, type: !10)
 !19 = distinct !DILexicalBlock(line: 2, column: 0, file: !1, scope: !4)
 !20 = !DILocation(line: 2, scope: !19)
 !21 = !DILocation(line: 3, scope: !19)
diff --git a/polly/test/ScopDetectionDiagnostics/ReportAlias-01.ll b/polly/test/ScopDetectionDiagnostics/ReportAlias-01.ll
index f1891f6d96be..73b6ae9886e0 100644
--- a/polly/test/ScopDetectionDiagnostics/ReportAlias-01.ll
+++ b/polly/test/ScopDetectionDiagnostics/ReportAlias-01.ll
@@ -56,12 +56,12 @@ declare void @llvm.dbg.value(metadata, i64, metadata, metadata)
 !10 = !{i32 2, !"Dwarf Version", i32 4}
 !11 = !{i32 2, !"Debug Info Version", i32 3}
 !12 = !{!"clang version 3.6.0 "}
-!13 = !DILocalVariable(tag: DW_TAG_arg_variable, name: "A", line: 1, arg: 1, scope: !4, file: !5, type: !8)
+!13 = !DILocalVariable(name: "A", line: 1, arg: 1, scope: !4, file: !5, type: !8)
 !14 = !DILocation(line: 1, column: 12, scope: !4)
-!15 = !DILocalVariable(tag: DW_TAG_arg_variable, name: "B", line: 1, arg: 2, scope: !4, file: !5, type: !8)
+!15 = !DILocalVariable(name: "B", line: 1, arg: 2, scope: !4, file: !5, type: !8)
 !16 = !DILocation(line: 1, column: 21, scope: !4)
 !17 = !{i32 0}
-!18 = !DILocalVariable(tag: DW_TAG_auto_variable, name: "i", line: 2, scope: !19, file: !5, type: !9)
+!18 = !DILocalVariable(name: "i", line: 2, scope: !19, file: !5, type: !9)
 !19 = distinct !DILexicalBlock(line: 2, column: 3, file: !1, scope: !4)
 !20 = !DILocation(line: 2, column: 12, scope: !19)
 !21 = !DILocation(line: 2, column: 8, scope: !19)
diff --git a/polly/test/ScopDetectionDiagnostics/ReportLoopBound-01.ll b/polly/test/ScopDetectionDiagnostics/ReportLoopBound-01.ll
index 1ff3492a80a9..5d087869c325 100644
--- a/polly/test/ScopDetectionDiagnostics/ReportLoopBound-01.ll
+++ b/polly/test/ScopDetectionDiagnostics/ReportLoopBound-01.ll
@@ -88,12 +88,12 @@ attributes #1 = { nounwind readnone }
 !10 = !{i32 2, !"Dwarf Version", i32 4}
 !11 = !{i32 2, !"Debug Info Version", i32 3}
 !12 = !{!"clang version 3.6.0 "}
-!13 = !DILocalVariable(tag: DW_TAG_arg_variable, name: "A", line: 1, arg: 1, scope: !4, file: !5, type: !8)
+!13 = !DILocalVariable(name: "A", line: 1, arg: 1, scope: !4, file: !5, type: !8)
 !14 = !DILocation(line: 1, column: 12, scope: !4)
-!15 = !DILocalVariable(tag: DW_TAG_arg_variable, name: "n", line: 1, arg: 2, scope: !4, file: !5, type: !9)
+!15 = !DILocalVariable(name: "n", line: 1, arg: 2, scope: !4, file: !5, type: !9)
 !16 = !DILocation(line: 1, column: 21, scope: !4)
 !17 = !{i32 0}
-!18 = !DILocalVariable(tag: DW_TAG_auto_variable, name: "i", line: 2, scope: !19, file: !5, type: !9)
+!18 = !DILocalVariable(name: "i", line: 2, scope: !19, file: !5, type: !9)
 !19 = distinct !DILexicalBlock(line: 2, column: 3, file: !1, scope: !4)
 !20 = !DILocation(line: 2, column: 12, scope: !19)
 !21 = !DILocation(line: 2, column: 8, scope: !19)
diff --git a/polly/test/ScopDetectionDiagnostics/ReportNonAffineAccess-01.ll b/polly/test/ScopDetectionDiagnostics/ReportNonAffineAccess-01.ll
index 05351526662b..894d86f62ee2 100644
--- a/polly/test/ScopDetectionDiagnostics/ReportNonAffineAccess-01.ll
+++ b/polly/test/ScopDetectionDiagnostics/ReportNonAffineAccess-01.ll
@@ -60,10 +60,10 @@ attributes #1 = { nounwind readnone }
 !10 = !{i32 2, !"Dwarf Version", i32 4}
 !11 = !{i32 2, !"Debug Info Version", i32 3}
 !12 = !{!"clang version 3.6.0 "}
-!13 = !DILocalVariable(tag: DW_TAG_arg_variable, name: "A", line: 1, arg: 1, scope: !4, file: !5, type: !8)
+!13 = !DILocalVariable(name: "A", line: 1, arg: 1, scope: !4, file: !5, type: !8)
 !14 = !DILocation(line: 1, column: 12, scope: !4)
 !15 = !{i32 0}
-!16 = !DILocalVariable(tag: DW_TAG_auto_variable, name: "i", line: 2, scope: !17, file: !5, type: !9)
+!16 = !DILocalVariable(name: "i", line: 2, scope: !17, file: !5, type: !9)
 !17 = distinct !DILexicalBlock(line: 2, column: 3, file: !1, scope: !4)
 !18 = !DILocation(line: 2, column: 11, scope: !17)
 !19 = !DILocation(line: 2, column: 7, scope: !17)
diff --git a/polly/test/ScopDetectionDiagnostics/ReportUnprofitable.ll b/polly/test/ScopDetectionDiagnostics/ReportUnprofitable.ll
index d3decb8e7df4..70873be6f5ac 100644
--- a/polly/test/ScopDetectionDiagnostics/ReportUnprofitable.ll
+++ b/polly/test/ScopDetectionDiagnostics/ReportUnprofitable.ll
@@ -99,10 +99,10 @@ attributes #1 = { nounwind readnone }
 !11 = !{i32 2, !"Dwarf Version", i32 4}
 !12 = !{i32 2, !"Debug Info Version", i32 3}
 !13 = !{!"clang version 3.7.0  (llvm/trunk 229257)"}
-!14 = !DILocalVariable(tag: DW_TAG_arg_variable, name: "A", line: 1, arg: 1, scope: !4, file: !5, type: !8)
+!14 = !DILocalVariable(name: "A", line: 1, arg: 1, scope: !4, file: !5, type: !8)
 !15 = !DIExpression()
 !16 = !DILocation(line: 1, column: 23, scope: !4)
-!17 = !DILocalVariable(tag: DW_TAG_auto_variable, name: "i", line: 2, scope: !18, file: !5, type: !19)
+!17 = !DILocalVariable(name: "i", line: 2, scope: !18, file: !5, type: !19)
 !18 = distinct !DILexicalBlock(line: 2, column: 3, file: !1, scope: !4)
 !19 = !DIBasicType(tag: DW_TAG_base_type, name: "long int", size: 64, align: 64, encoding: DW_ATE_signed)
 !20 = !DILocation(line: 2, column: 13, scope: !18)
@@ -114,9 +114,9 @@ attributes #1 = { nounwind readnone }
 !26 = !DILocation(line: 2, column: 30, scope: !24)
 !27 = !DILocation(line: 2, column: 3, scope: !24)
 !28 = !DILocation(line: 4, column: 1, scope: !4)
-!29 = !DILocalVariable(tag: DW_TAG_arg_variable, name: "A", line: 6, arg: 1, scope: !10, file: !5, type: !8)
+!29 = !DILocalVariable(name: "A", line: 6, arg: 1, scope: !10, file: !5, type: !8)
 !30 = !DILocation(line: 6, column: 22, scope: !10)
-!31 = !DILocalVariable(tag: DW_TAG_auto_variable, name: "i", line: 7, scope: !32, file: !5, type: !19)
+!31 = !DILocalVariable(name: "i", line: 7, scope: !32, file: !5, type: !19)
 !32 = distinct !DILexicalBlock(line: 7, column: 3, file: !1, scope: !10)
 !33 = !DILocation(line: 7, column: 13, scope: !32)
 !34 = !DILocation(line: 7, column: 8, scope: !32)
diff --git a/polly/test/ScopDetectionDiagnostics/ReportVariantBasePtr-01.ll b/polly/test/ScopDetectionDiagnostics/ReportVariantBasePtr-01.ll
index 1bdf45666990..6b2b881b41ec 100644
--- a/polly/test/ScopDetectionDiagnostics/ReportVariantBasePtr-01.ll
+++ b/polly/test/ScopDetectionDiagnostics/ReportVariantBasePtr-01.ll
@@ -77,8 +77,8 @@ attributes #1 = { nounwind readnone }
 !13 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, baseType: !14)
 !14 = !DIBasicType(tag: DW_TAG_base_type, name: "double", size: 64, align: 64, encoding: DW_ATE_float)
 !15 = !{!16, !17}
-!16 = !DILocalVariable(tag: DW_TAG_arg_variable, name: "A", line: 5, arg: 1, scope: !4, file: !5, type: !8)
-!17 = !DILocalVariable(tag: DW_TAG_auto_variable, name: "i", line: 6, scope: !18, file: !5, type: !19)
+!16 = !DILocalVariable(name: "A", line: 5, arg: 1, scope: !4, file: !5, type: !8)
+!17 = !DILocalVariable(name: "i", line: 6, scope: !18, file: !5, type: !19)
 !18 = distinct !DILexicalBlock(line: 6, column: 3, file: !1, scope: !4)
 !19 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
 !20 = !{i32 2, !"Dwarf Version", i32 4}