diff options
Diffstat (limited to 'test/Transforms/Mem2Reg')
| -rw-r--r-- | test/Transforms/Mem2Reg/2002-03-28-UninitializedVal.ll | 2 | ||||
| -rw-r--r-- | test/Transforms/Mem2Reg/2003-04-24-MultipleIdenticalSuccessors.ll | 2 | ||||
| -rw-r--r-- | test/Transforms/Mem2Reg/2003-06-26-IterativePromote.ll | 6 | ||||
| -rw-r--r-- | test/Transforms/Mem2Reg/2003-10-05-DeadPHIInsertion.ll | 4 | ||||
| -rw-r--r-- | test/Transforms/Mem2Reg/2005-06-30-ReadBeforeWrite.ll | 18 | ||||
| -rw-r--r-- | test/Transforms/Mem2Reg/2005-11-28-Crash.ll | 2 | ||||
| -rw-r--r-- | test/Transforms/Mem2Reg/2007-08-27-VolatileLoadsStores.ll | 8 | ||||
| -rw-r--r-- | test/Transforms/Mem2Reg/ConvertDebugInfo.ll | 38 | ||||
| -rw-r--r-- | test/Transforms/Mem2Reg/ConvertDebugInfo2.ll | 46 | ||||
| -rw-r--r-- | test/Transforms/Mem2Reg/PromoteMemToRegister.ll | 6 | ||||
| -rw-r--r-- | test/Transforms/Mem2Reg/UndefValuesMerge.ll | 2 | ||||
| -rw-r--r-- | test/Transforms/Mem2Reg/atomic.ll | 2 | ||||
| -rw-r--r-- | test/Transforms/Mem2Reg/crash.ll | 6 | ||||
| -rw-r--r-- | test/Transforms/Mem2Reg/ignore-lifetime.ll | 2 |
14 files changed, 72 insertions, 72 deletions
diff --git a/test/Transforms/Mem2Reg/2002-03-28-UninitializedVal.ll b/test/Transforms/Mem2Reg/2002-03-28-UninitializedVal.ll index 777f375..49b5605 100644 --- a/test/Transforms/Mem2Reg/2002-03-28-UninitializedVal.ll +++ b/test/Transforms/Mem2Reg/2002-03-28-UninitializedVal.ll @@ -6,6 +6,6 @@ define i32 @test() { ; To be promoted %X = alloca i32 ; <i32*> [#uses=1] - %Y = load i32* %X ; <i32> [#uses=1] + %Y = load i32, i32* %X ; <i32> [#uses=1] ret i32 %Y } diff --git a/test/Transforms/Mem2Reg/2003-04-24-MultipleIdenticalSuccessors.ll b/test/Transforms/Mem2Reg/2003-04-24-MultipleIdenticalSuccessors.ll index f5f1ee3..a013ff4 100644 --- a/test/Transforms/Mem2Reg/2003-04-24-MultipleIdenticalSuccessors.ll +++ b/test/Transforms/Mem2Reg/2003-04-24-MultipleIdenticalSuccessors.ll @@ -10,7 +10,7 @@ B2: ; preds = %0 store i32 2, i32* %X br i1 %c2, label %Exit, label %Exit Exit: ; preds = %B2, %B2, %0 - %Y = load i32* %X ; <i32> [#uses=1] + %Y = load i32, i32* %X ; <i32> [#uses=1] ret i32 %Y } diff --git a/test/Transforms/Mem2Reg/2003-06-26-IterativePromote.ll b/test/Transforms/Mem2Reg/2003-06-26-IterativePromote.ll index e82caa9..de7280e 100644 --- a/test/Transforms/Mem2Reg/2003-06-26-IterativePromote.ll +++ b/test/Transforms/Mem2Reg/2003-06-26-IterativePromote.ll @@ -7,10 +7,10 @@ define i32 @test2() { %p = alloca i32* ; <i32**> [#uses=2] store i32 0, i32* %a store i32* %a, i32** %p - %tmp.0 = load i32** %p ; <i32*> [#uses=1] - %tmp.1 = load i32* %tmp.0 ; <i32> [#uses=1] + %tmp.0 = load i32*, i32** %p ; <i32*> [#uses=1] + %tmp.1 = load i32, i32* %tmp.0 ; <i32> [#uses=1] store i32 %tmp.1, i32* %result - %tmp.2 = load i32* %result ; <i32> [#uses=1] + %tmp.2 = load i32, i32* %result ; <i32> [#uses=1] ret i32 %tmp.2 } diff --git a/test/Transforms/Mem2Reg/2003-10-05-DeadPHIInsertion.ll b/test/Transforms/Mem2Reg/2003-10-05-DeadPHIInsertion.ll index 1d38efc..8d55a1d 100644 --- a/test/Transforms/Mem2Reg/2003-10-05-DeadPHIInsertion.ll +++ b/test/Transforms/Mem2Reg/2003-10-05-DeadPHIInsertion.ll @@ -9,11 +9,11 @@ define void @test(i32 %B, i1 %C) { br i1 %C, label %L1, label %L2 L1: ; preds = %0 store i32 %B, i32* %A - %D = load i32* %A ; <i32> [#uses=1] + %D = load i32, i32* %A ; <i32> [#uses=1] call void @test( i32 %D, i1 false ) br label %L3 L2: ; preds = %0 - %E = load i32* %A ; <i32> [#uses=1] + %E = load i32, i32* %A ; <i32> [#uses=1] call void @test( i32 %E, i1 true ) br label %L3 L3: ; preds = %L2, %L1 diff --git a/test/Transforms/Mem2Reg/2005-06-30-ReadBeforeWrite.ll b/test/Transforms/Mem2Reg/2005-06-30-ReadBeforeWrite.ll index 7435596..f0f1fdc 100644 --- a/test/Transforms/Mem2Reg/2005-06-30-ReadBeforeWrite.ll +++ b/test/Transforms/Mem2Reg/2005-06-30-ReadBeforeWrite.ll @@ -14,31 +14,31 @@ entry: store i32 0, i32* %i br label %loopentry loopentry: ; preds = %endif, %entry - %tmp.0 = load i32* %n_addr ; <i32> [#uses=1] + %tmp.0 = load i32, i32* %n_addr ; <i32> [#uses=1] %tmp.1 = add i32 %tmp.0, 1 ; <i32> [#uses=1] - %tmp.2 = load i32* %i ; <i32> [#uses=1] + %tmp.2 = load i32, i32* %i ; <i32> [#uses=1] %tmp.3 = icmp sgt i32 %tmp.1, %tmp.2 ; <i1> [#uses=2] %tmp.4 = zext i1 %tmp.3 to i32 ; <i32> [#uses=0] br i1 %tmp.3, label %no_exit, label %return no_exit: ; preds = %loopentry - %tmp.5 = load i32* %undef ; <i32> [#uses=1] + %tmp.5 = load i32, i32* %undef ; <i32> [#uses=1] store i32 %tmp.5, i32* %out store i32 0, i32* %undef - %tmp.6 = load i32* %i ; <i32> [#uses=1] + %tmp.6 = load i32, i32* %i ; <i32> [#uses=1] %tmp.7 = icmp sgt i32 %tmp.6, 0 ; <i1> [#uses=2] %tmp.8 = zext i1 %tmp.7 to i32 ; <i32> [#uses=0] br i1 %tmp.7, label %then, label %endif then: ; preds = %no_exit - %tmp.9 = load i8** %p_addr ; <i8*> [#uses=1] - %tmp.10 = load i32* %i ; <i32> [#uses=1] + %tmp.9 = load i8*, i8** %p_addr ; <i8*> [#uses=1] + %tmp.10 = load i32, i32* %i ; <i32> [#uses=1] %tmp.11 = sub i32 %tmp.10, 1 ; <i32> [#uses=1] - %tmp.12 = getelementptr i8* %tmp.9, i32 %tmp.11 ; <i8*> [#uses=1] - %tmp.13 = load i32* %out ; <i32> [#uses=1] + %tmp.12 = getelementptr i8, i8* %tmp.9, i32 %tmp.11 ; <i8*> [#uses=1] + %tmp.13 = load i32, i32* %out ; <i32> [#uses=1] %tmp.14 = trunc i32 %tmp.13 to i8 ; <i8> [#uses=1] store i8 %tmp.14, i8* %tmp.12 br label %endif endif: ; preds = %then, %no_exit - %tmp.15 = load i32* %i ; <i32> [#uses=1] + %tmp.15 = load i32, i32* %i ; <i32> [#uses=1] %inc = add i32 %tmp.15, 1 ; <i32> [#uses=1] store i32 %inc, i32* %i br label %loopentry diff --git a/test/Transforms/Mem2Reg/2005-11-28-Crash.ll b/test/Transforms/Mem2Reg/2005-11-28-Crash.ll index 8fd3351..4b1d7f6 100644 --- a/test/Transforms/Mem2Reg/2005-11-28-Crash.ll +++ b/test/Transforms/Mem2Reg/2005-11-28-Crash.ll @@ -41,7 +41,7 @@ endif.3: ; preds = %then.3, %endif.1 loopexit: ; preds = %loopentry br label %endif.4 then.4: ; No predecessors! - %tmp.61 = load i32* %flags ; <i32> [#uses=0] + %tmp.61 = load i32, i32* %flags ; <i32> [#uses=0] br label %out dead_block_after_goto: ; No predecessors! br label %endif.4 diff --git a/test/Transforms/Mem2Reg/2007-08-27-VolatileLoadsStores.ll b/test/Transforms/Mem2Reg/2007-08-27-VolatileLoadsStores.ll index ea581d1..891af98 100644 --- a/test/Transforms/Mem2Reg/2007-08-27-VolatileLoadsStores.ll +++ b/test/Transforms/Mem2Reg/2007-08-27-VolatileLoadsStores.ll @@ -15,14 +15,14 @@ entry: %tmp = alloca i32, align 4 ; <i32*> [#uses=3] %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0] store volatile i32 0, i32* %v, align 4 - %tmp1 = call i32 @_setjmp( %struct.__jmp_buf_tag* getelementptr ([1 x %struct.__jmp_buf_tag]* @j, i32 0, i32 0) ) ; <i32> [#uses=1] + %tmp1 = call i32 @_setjmp( %struct.__jmp_buf_tag* getelementptr ([1 x %struct.__jmp_buf_tag], [1 x %struct.__jmp_buf_tag]* @j, i32 0, i32 0) ) ; <i32> [#uses=1] %tmp2 = icmp ne i32 %tmp1, 0 ; <i1> [#uses=1] %tmp23 = zext i1 %tmp2 to i8 ; <i8> [#uses=1] %toBool = icmp ne i8 %tmp23, 0 ; <i1> [#uses=1] br i1 %toBool, label %bb, label %bb5 bb: ; preds = %entry - %tmp4 = load volatile i32* %v, align 4 ; <i32> [#uses=1] + %tmp4 = load volatile i32, i32* %v, align 4 ; <i32> [#uses=1] store i32 %tmp4, i32* %tmp, align 4 br label %bb6 @@ -33,12 +33,12 @@ bb5: ; preds = %entry br label %bb6 bb6: ; preds = %bb5, %bb - %tmp7 = load i32* %tmp, align 4 ; <i32> [#uses=1] + %tmp7 = load i32, i32* %tmp, align 4 ; <i32> [#uses=1] store i32 %tmp7, i32* %retval, align 4 br label %return return: ; preds = %bb6 - %retval8 = load i32* %retval ; <i32> [#uses=1] + %retval8 = load i32, i32* %retval ; <i32> [#uses=1] ret i32 %retval8 } diff --git a/test/Transforms/Mem2Reg/ConvertDebugInfo.ll b/test/Transforms/Mem2Reg/ConvertDebugInfo.ll index a7369c0..2a009ab 100644 --- a/test/Transforms/Mem2Reg/ConvertDebugInfo.ll +++ b/test/Transforms/Mem2Reg/ConvertDebugInfo.ll @@ -7,26 +7,26 @@ entry: %retval = alloca double ; <double*> [#uses=2] %0 = alloca double ; <double*> [#uses=2] %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0] - call void @llvm.dbg.declare(metadata i32* %i_addr, metadata !0, metadata !{}), !dbg !8 + call void @llvm.dbg.declare(metadata i32* %i_addr, metadata !0, metadata !MDExpression()), !dbg !8 ; CHECK: call void @llvm.dbg.value(metadata i32 %i, i64 0, metadata ![[IVAR:[0-9]*]], metadata {{.*}}) ; CHECK: call void @llvm.dbg.value(metadata double %j, i64 0, metadata ![[JVAR:[0-9]*]], metadata {{.*}}) -; CHECK: ![[IVAR]] = {{.*}} ; [ DW_TAG_arg_variable ] [i] -; CHECK: ![[JVAR]] = {{.*}} ; [ DW_TAG_arg_variable ] [j] +; CHECK: ![[IVAR]] = !MDLocalVariable(tag: DW_TAG_arg_variable, name: "i" +; CHECK: ![[JVAR]] = !MDLocalVariable(tag: DW_TAG_arg_variable, name: "j" store i32 %i, i32* %i_addr - call void @llvm.dbg.declare(metadata double* %j_addr, metadata !9, metadata !{}), !dbg !8 + call void @llvm.dbg.declare(metadata double* %j_addr, metadata !9, metadata !MDExpression()), !dbg !8 store double %j, double* %j_addr - %1 = load i32* %i_addr, align 4, !dbg !10 ; <i32> [#uses=1] + %1 = load i32, i32* %i_addr, align 4, !dbg !10 ; <i32> [#uses=1] %2 = add nsw i32 %1, 1, !dbg !10 ; <i32> [#uses=1] %3 = sitofp i32 %2 to double, !dbg !10 ; <double> [#uses=1] - %4 = load double* %j_addr, align 8, !dbg !10 ; <double> [#uses=1] + %4 = load double, double* %j_addr, align 8, !dbg !10 ; <double> [#uses=1] %5 = fadd double %3, %4, !dbg !10 ; <double> [#uses=1] store double %5, double* %0, align 8, !dbg !10 - %6 = load double* %0, align 8, !dbg !10 ; <double> [#uses=1] + %6 = load double, double* %0, align 8, !dbg !10 ; <double> [#uses=1] store double %6, double* %retval, align 8, !dbg !10 br label %return, !dbg !10 return: ; preds = %entry - %retval1 = load double* %retval, !dbg !10 ; <double> [#uses=1] + %retval1 = load double, double* %retval, !dbg !10 ; <double> [#uses=1] ret double %retval1, !dbg !10 } @@ -35,18 +35,18 @@ declare void @llvm.dbg.declare(metadata, metadata, metadata) nounwind readnone !llvm.dbg.cu = !{!3} !llvm.module.flags = !{!14} -!0 = !{!"0x101\00i\002\000", !1, !2, !7} ; [ DW_TAG_arg_variable ] -!1 = !{!"0x2e\00testfunc\00testfunc\00testfunc\002\000\001\000\006\000\000\002", !12, !2, !4, null, double (i32, double)* @testfunc, null, null, null} ; [ DW_TAG_subprogram ] -!2 = !{!"0x29", !12} ; [ DW_TAG_file_type ] -!3 = !{!"0x11\001\004.2.1 (Based on Apple Inc. build 5658) (LLVM build)\001\00\000\00\000", !12, !13, !13, null, null, null} ; [ DW_TAG_compile_unit ] -!4 = !{!"0x15\00\000\000\000\000\000\000", !12, !2, null, !5, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] +!0 = !MDLocalVariable(tag: DW_TAG_arg_variable, name: "i", line: 2, arg: 0, scope: !1, file: !2, type: !7) +!1 = !MDSubprogram(name: "testfunc", linkageName: "testfunc", line: 2, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, scopeLine: 2, file: !12, scope: !2, type: !4, function: double (i32, double)* @testfunc) +!2 = !MDFile(filename: "testfunc.c", directory: "/tmp") +!3 = !MDCompileUnit(language: DW_LANG_C89, producer: "4.2.1 (Based on Apple Inc. build 5658) (LLVM build)", isOptimized: true, emissionKind: 0, file: !12, enums: !13, retainedTypes: !13) +!4 = !MDSubroutineType(types: !5) !5 = !{!6, !7, !6} -!6 = !{!"0x24\00double\000\0064\0064\000\000\004", !12, !2} ; [ DW_TAG_base_type ] -!7 = !{!"0x24\00int\000\0032\0032\000\000\005", !12, !2} ; [ DW_TAG_base_type ] +!6 = !MDBasicType(tag: DW_TAG_base_type, name: "double", size: 64, align: 64, encoding: DW_ATE_float) +!7 = !MDBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed) !8 = !MDLocation(line: 2, scope: !1) -!9 = !{!"0x101\00j\002\000", !1, !2, !6} ; [ DW_TAG_arg_variable ] +!9 = !MDLocalVariable(tag: DW_TAG_arg_variable, name: "j", line: 2, arg: 0, scope: !1, file: !2, type: !6) !10 = !MDLocation(line: 3, scope: !11) -!11 = !{!"0xb\002\000\000", !12, !1} ; [ DW_TAG_lexical_block ] -!12 = !{!"testfunc.c", !"/tmp"} +!11 = distinct !MDLexicalBlock(line: 2, column: 0, file: !12, scope: !1) +!12 = !MDFile(filename: "testfunc.c", directory: "/tmp") !13 = !{i32 0} -!14 = !{i32 1, !"Debug Info Version", i32 2} +!14 = !{i32 1, !"Debug Info Version", i32 3} diff --git a/test/Transforms/Mem2Reg/ConvertDebugInfo2.ll b/test/Transforms/Mem2Reg/ConvertDebugInfo2.ll index 76d2a1a..0d9e3de 100644 --- a/test/Transforms/Mem2Reg/ConvertDebugInfo2.ll +++ b/test/Transforms/Mem2Reg/ConvertDebugInfo2.ll @@ -11,18 +11,18 @@ entry: %z_addr.i = alloca i8* ; <i8**> [#uses=2] %a_addr = alloca i32 ; <i32*> [#uses=2] %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0] - call void @llvm.dbg.declare(metadata i32* %a_addr, metadata !0, metadata !{}), !dbg !7 + call void @llvm.dbg.declare(metadata i32* %a_addr, metadata !0, metadata !MDExpression()), !dbg !7 store i32 %a, i32* %a_addr - %0 = load i32* %a_addr, align 4, !dbg !8 ; <i32> [#uses=1] - call void @llvm.dbg.declare(metadata i32* %x_addr.i, metadata !9, metadata !{}) nounwind, !dbg !15 + %0 = load i32, i32* %a_addr, align 4, !dbg !8 ; <i32> [#uses=1] + call void @llvm.dbg.declare(metadata i32* %x_addr.i, metadata !9, metadata !MDExpression()) nounwind, !dbg !15 store i32 %0, i32* %x_addr.i - call void @llvm.dbg.declare(metadata i64* %y_addr.i, metadata !16, metadata !{}) nounwind, !dbg !15 + call void @llvm.dbg.declare(metadata i64* %y_addr.i, metadata !16, metadata !MDExpression()) nounwind, !dbg !15 store i64 55, i64* %y_addr.i - call void @llvm.dbg.declare(metadata i8** %z_addr.i, metadata !17, metadata !{}) nounwind, !dbg !15 + call void @llvm.dbg.declare(metadata i8** %z_addr.i, metadata !17, metadata !MDExpression()) nounwind, !dbg !15 store i8* bitcast (void (i32)* @baz to i8*), i8** %z_addr.i - %1 = load i32* %x_addr.i, align 4, !dbg !18 ; <i32> [#uses=1] - %2 = load i64* %y_addr.i, align 8, !dbg !18 ; <i64> [#uses=1] - %3 = load i8** %z_addr.i, align 8, !dbg !18 ; <i8*> [#uses=1] + %1 = load i32, i32* %x_addr.i, align 4, !dbg !18 ; <i32> [#uses=1] + %2 = load i64, i64* %y_addr.i, align 8, !dbg !18 ; <i64> [#uses=1] + %3 = load i8*, i8** %z_addr.i, align 8, !dbg !18 ; <i8*> [#uses=1] call void @foo(i32 %1, i64 %2, i8* %3) nounwind, !dbg !18 br label %return, !dbg !19 @@ -32,26 +32,26 @@ return: ; preds = %entry !llvm.dbg.cu = !{!3} !llvm.module.flags = !{!22} -!0 = !{!"0x101\00a\008\000", !1, !2, !6} ; [ DW_TAG_arg_variable ] -!1 = !{!"0x2e\00baz\00baz\00baz\008\000\001\000\006\000\000\008", !20, !2, !4, null, void (i32)* @baz, null, null, null} ; [ DW_TAG_subprogram ] -!2 = !{!"0x29", !20} ; [ DW_TAG_file_type ] -!3 = !{!"0x11\001\004.2.1 (Based on Apple Inc. build 5658) (LLVM build)\001\00\000\00\000", !20, !21, !21, null, null, null} ; [ DW_TAG_compile_unit ] -!4 = !{!"0x15\00\000\000\000\000\000\000", !20, !2, null, !5, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] +!0 = !MDLocalVariable(tag: DW_TAG_arg_variable, name: "a", line: 8, arg: 0, scope: !1, file: !2, type: !6) +!1 = !MDSubprogram(name: "baz", linkageName: "baz", line: 8, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, scopeLine: 8, file: !20, scope: !2, type: !4, function: void (i32)* @baz) +!2 = !MDFile(filename: "bar.c", directory: "/tmp/") +!3 = !MDCompileUnit(language: DW_LANG_C89, producer: "4.2.1 (Based on Apple Inc. build 5658) (LLVM build)", isOptimized: true, emissionKind: 0, file: !20, enums: !21, retainedTypes: !21) +!4 = !MDSubroutineType(types: !5) !5 = !{null, !6} -!6 = !{!"0x24\00int\000\0032\0032\000\000\005", !20, !2} ; [ DW_TAG_base_type ] +!6 = !MDBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed) !7 = !MDLocation(line: 8, scope: !1) !8 = !MDLocation(line: 9, scope: !1) -!9 = !{!"0x101\00x\004\000", !10, !2, !6} ; [ DW_TAG_arg_variable ] -!10 = !{!"0x2e\00bar\00bar\00bar\004\001\001\000\006\000\000\004", !20, !2, !11, null, null, null, null, null} ; [ DW_TAG_subprogram ] -!11 = !{!"0x15\00\000\000\000\000\000\000", !20, !2, null, !12, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] +!9 = !MDLocalVariable(tag: DW_TAG_arg_variable, name: "x", line: 4, arg: 0, scope: !10, file: !2, type: !6) +!10 = !MDSubprogram(name: "bar", linkageName: "bar", line: 4, isLocal: true, isDefinition: true, virtualIndex: 6, isOptimized: false, scopeLine: 4, file: !20, scope: !2, type: !11) +!11 = !MDSubroutineType(types: !12) !12 = !{null, !6, !13, !14} -!13 = !{!"0x24\00long int\000\0064\0064\000\000\005", !20, !2} ; [ DW_TAG_base_type ] -!14 = !{!"0xf\00\000\0064\0064\000\000", !20, !2, null} ; [ DW_TAG_pointer_type ] +!13 = !MDBasicType(tag: DW_TAG_base_type, name: "long int", size: 64, align: 64, encoding: DW_ATE_signed) +!14 = !MDDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, file: !20, scope: !2, baseType: null) !15 = !MDLocation(line: 4, scope: !10, inlinedAt: !8) -!16 = !{!"0x101\00y\004\000", !10, !2, !13} ; [ DW_TAG_arg_variable ] -!17 = !{!"0x101\00z\004\000", !10, !2, !14} ; [ DW_TAG_arg_variable ] +!16 = !MDLocalVariable(tag: DW_TAG_arg_variable, name: "y", line: 4, arg: 0, scope: !10, file: !2, type: !13) +!17 = !MDLocalVariable(tag: DW_TAG_arg_variable, name: "z", line: 4, arg: 0, scope: !10, file: !2, type: !14) !18 = !MDLocation(line: 5, scope: !10, inlinedAt: !8) !19 = !MDLocation(line: 10, scope: !1) -!20 = !{!"bar.c", !"/tmp/"} +!20 = !MDFile(filename: "bar.c", directory: "/tmp/") !21 = !{i32 0} -!22 = !{i32 1, !"Debug Info Version", i32 2} +!22 = !{i32 1, !"Debug Info Version", i32 3} diff --git a/test/Transforms/Mem2Reg/PromoteMemToRegister.ll b/test/Transforms/Mem2Reg/PromoteMemToRegister.ll index 1be6b03..b7f3994 100644 --- a/test/Transforms/Mem2Reg/PromoteMemToRegister.ll +++ b/test/Transforms/Mem2Reg/PromoteMemToRegister.ll @@ -6,12 +6,12 @@ define double @testfunc(i32 %i, double %j) { %J = alloca double ; <double*> [#uses=2] store i32 %i, i32* %I store double %j, double* %J - %t1 = load i32* %I ; <i32> [#uses=1] + %t1 = load i32, i32* %I ; <i32> [#uses=1] %t2 = add i32 %t1, 1 ; <i32> [#uses=1] store i32 %t2, i32* %I - %t3 = load i32* %I ; <i32> [#uses=1] + %t3 = load i32, i32* %I ; <i32> [#uses=1] %t4 = sitofp i32 %t3 to double ; <double> [#uses=1] - %t5 = load double* %J ; <double> [#uses=1] + %t5 = load double, double* %J ; <double> [#uses=1] %t6 = fmul double %t4, %t5 ; <double> [#uses=1] ret double %t6 } diff --git a/test/Transforms/Mem2Reg/UndefValuesMerge.ll b/test/Transforms/Mem2Reg/UndefValuesMerge.ll index 5013229..eeeb72f 100644 --- a/test/Transforms/Mem2Reg/UndefValuesMerge.ll +++ b/test/Transforms/Mem2Reg/UndefValuesMerge.ll @@ -7,7 +7,7 @@ T: ; preds = %0 store i32 %i, i32* %I br label %Cont Cont: ; preds = %T, %0 - %Y = load i32* %I ; <i32> [#uses=1] + %Y = load i32, i32* %I ; <i32> [#uses=1] ret i32 %Y } diff --git a/test/Transforms/Mem2Reg/atomic.ll b/test/Transforms/Mem2Reg/atomic.ll index 5bc9e92..f20043d 100644 --- a/test/Transforms/Mem2Reg/atomic.ll +++ b/test/Transforms/Mem2Reg/atomic.ll @@ -7,6 +7,6 @@ define i32 @test1(i32 %x) { ; CHECK: ret i32 %x %a = alloca i32 store atomic i32 %x, i32* %a seq_cst, align 4 - %r = load atomic i32* %a seq_cst, align 4 + %r = load atomic i32, i32* %a seq_cst, align 4 ret i32 %r } diff --git a/test/Transforms/Mem2Reg/crash.ll b/test/Transforms/Mem2Reg/crash.ll index 59e2c0b..a4a31b1 100644 --- a/test/Transforms/Mem2Reg/crash.ll +++ b/test/Transforms/Mem2Reg/crash.ll @@ -14,7 +14,7 @@ invcont2: br label %bb15 bb15: - %B = load i32* %whichFlag + %B = load i32, i32* %whichFlag ret i32 %B lpad86: @@ -33,11 +33,11 @@ entry: br label %bb15 bb15: - %B = load i32* %whichFlag + %B = load i32, i32* %whichFlag ret i32 %B invcont2: - %C = load i32* %whichFlag + %C = load i32, i32* %whichFlag store i32 %C, i32* %whichFlag br label %bb15 } diff --git a/test/Transforms/Mem2Reg/ignore-lifetime.ll b/test/Transforms/Mem2Reg/ignore-lifetime.ll index 5e4f9bf..12adaff 100644 --- a/test/Transforms/Mem2Reg/ignore-lifetime.ll +++ b/test/Transforms/Mem2Reg/ignore-lifetime.ll @@ -18,7 +18,7 @@ define void @test2() { ; CHECK: test2 ; CHECK-NOT: alloca %A = alloca {i8, i16} - %B = getelementptr {i8, i16}* %A, i32 0, i32 0 + %B = getelementptr {i8, i16}, {i8, i16}* %A, i32 0, i32 0 call void @llvm.lifetime.start(i64 2, i8* %B) store {i8, i16} zeroinitializer, {i8, i16}* %A call void @llvm.lifetime.end(i64 2, i8* %B) |
