diff options
Diffstat (limited to 'test/Transforms/GlobalDCE')
6 files changed, 16 insertions, 16 deletions
diff --git a/test/Transforms/GlobalDCE/2002-08-17-FunctionDGE.ll b/test/Transforms/GlobalDCE/2002-08-17-FunctionDGE.ll index 766c227..49a87d9 100644 --- a/test/Transforms/GlobalDCE/2002-08-17-FunctionDGE.ll +++ b/test/Transforms/GlobalDCE/2002-08-17-FunctionDGE.ll @@ -11,7 +11,7 @@ ;; dies when %b dies. define internal i32 @foo() { - %ret = load i32* @foo.upgrd.1 ; <i32> [#uses=1] + %ret = load i32, i32* @foo.upgrd.1 ; <i32> [#uses=1] ret i32 %ret } diff --git a/test/Transforms/GlobalDCE/2002-08-17-WorkListTest.ll b/test/Transforms/GlobalDCE/2002-08-17-WorkListTest.ll index 42fcb1e..58d3f4c 100644 --- a/test/Transforms/GlobalDCE/2002-08-17-WorkListTest.ll +++ b/test/Transforms/GlobalDCE/2002-08-17-WorkListTest.ll @@ -5,8 +5,8 @@ @t0 = internal global [4 x i8] c"foo\00" ; <[4 x i8]*> [#uses=1] @t1 = internal global [4 x i8] c"bar\00" ; <[4 x i8]*> [#uses=1] -@s1 = internal global [1 x i8*] [ i8* getelementptr ([4 x i8]* @t0, i32 0, i32 0) ] ; <[1 x i8*]*> [#uses=0] -@s2 = internal global [1 x i8*] [ i8* getelementptr ([4 x i8]* @t1, i64 0, i64 0) ] ; <[1 x i8*]*> [#uses=0] +@s1 = internal global [1 x i8*] [ i8* getelementptr ([4 x i8], [4 x i8]* @t0, i32 0, i32 0) ] ; <[1 x i8*]*> [#uses=0] +@s2 = internal global [1 x i8*] [ i8* getelementptr ([4 x i8], [4 x i8]* @t1, i64 0, i64 0) ] ; <[1 x i8*]*> [#uses=0] @b = internal global i32* @a ; <i32**> [#uses=0] @a = internal global i32 7 ; <i32*> [#uses=1] diff --git a/test/Transforms/GlobalDCE/2002-09-12-Redeletion.ll b/test/Transforms/GlobalDCE/2002-09-12-Redeletion.ll index 6221fa3..afa2629 100644 --- a/test/Transforms/GlobalDCE/2002-09-12-Redeletion.ll +++ b/test/Transforms/GlobalDCE/2002-09-12-Redeletion.ll @@ -5,7 +5,7 @@ @bar = internal global [2 x { i32*, i32 }] [ { i32*, i32 } { i32* @foo.upgrd.1, i32 7 }, { i32*, i32 } { i32* @foo.upgrd.1, i32 1 } ] ; <[2 x { i32*, i32 }]*> [#uses=0] define internal i32 @foo() { - %ret = load i32* @foo.upgrd.1 ; <i32> [#uses=1] + %ret = load i32, i32* @foo.upgrd.1 ; <i32> [#uses=1] ret i32 %ret } diff --git a/test/Transforms/GlobalDCE/complex-constantexpr.ll b/test/Transforms/GlobalDCE/complex-constantexpr.ll index 4bf1aee..b4eed02 100644 --- a/test/Transforms/GlobalDCE/complex-constantexpr.ll +++ b/test/Transforms/GlobalDCE/complex-constantexpr.ll @@ -19,7 +19,7 @@ bb: br label %bb2 bb1: ; preds = %bb11 - %tmp = load i32* @global5, align 4 + %tmp = load i32, i32* @global5, align 4 br label %bb2 bb2: ; preds = %bb1, %bb @@ -34,12 +34,12 @@ bb6: ; preds = %bb2 br label %bb8 bb8: ; preds = %bb6, %bb2 - %tmp9 = load i32* @global7, align 4 + %tmp9 = load i32, i32* @global7, align 4 %tmp10 = icmp eq i32 %tmp9, 0 br i1 %tmp10, label %bb11, label %bb15 bb11: ; preds = %bb8 - %tmp12 = load i32* @global6, align 4 + %tmp12 = load i32, i32* @global6, align 4 %tmp13 = add nsw i32 %tmp12, 1 store i32 %tmp13, i32* @global6, align 4 %tmp14 = icmp slt i32 %tmp13, 42 @@ -69,9 +69,9 @@ bb: define void @blam() { bb: - store i32 ptrtoint (i32* @global to i32), i32* getelementptr inbounds (%struct.ham* @global8, i64 0, i32 0), align 4 + store i32 ptrtoint (i32* @global to i32), i32* getelementptr inbounds (%struct.ham, %struct.ham* @global8, i64 0, i32 0), align 4 store i32 0, i32* @global9, align 4 - %tmp = load i32* getelementptr inbounds (%struct.ham* @global8, i64 0, i32 0), align 4 + %tmp = load i32, i32* getelementptr inbounds (%struct.ham, %struct.ham* @global8, i64 0, i32 0), align 4 br label %bb1 bb1: ; preds = %bb1, %bb @@ -89,7 +89,7 @@ bb1: ; preds = %bb1, %bb br i1 %tmp12, label %bb13, label %bb1 bb13: ; preds = %bb1 - store i32 %tmp10, i32* getelementptr inbounds (%struct.ham* @global8, i64 0, i32 0), align 4 + store i32 %tmp10, i32* getelementptr inbounds (%struct.ham, %struct.ham* @global8, i64 0, i32 0), align 4 store i32 0, i32* @global10, align 4 store i32 %tmp6, i32* @global11, align 4 store i32 20, i32* @global9, align 4 diff --git a/test/Transforms/GlobalDCE/global_ctors_integration.ll b/test/Transforms/GlobalDCE/global_ctors_integration.ll index 5e6cc79..f7f702a 100644 --- a/test/Transforms/GlobalDCE/global_ctors_integration.ll +++ b/test/Transforms/GlobalDCE/global_ctors_integration.ll @@ -12,7 +12,7 @@ @llvm.global_ctors = appending global [1 x { i32, void ()* }] [{ i32, void ()* } { i32 65535, void ()* @_GLOBAL__I_a }] define internal void @__cxx_global_var_init() section "__TEXT,__StaticInit,regular,pure_instructions" { - %1 = load i32* @_ZN3Bar18LINKER_INITIALIZEDE, align 4 + %1 = load i32, i32* @_ZN3Bar18LINKER_INITIALIZEDE, align 4 call void @_ZN3FooC1E17LinkerInitialized(%class.Foo* @foo, i32 %1) ret void } @@ -23,8 +23,8 @@ define linkonce_odr void @_ZN3FooC1E17LinkerInitialized(%class.Foo* %this, i32) %3 = alloca i32, align 4 store %class.Foo* %this, %class.Foo** %2, align 8 store i32 %0, i32* %3, align 4 - %4 = load %class.Foo** %2 - %5 = load i32* %3, align 4 + %4 = load %class.Foo*, %class.Foo** %2 + %5 = load i32, i32* %3, align 4 call void @_ZN3FooC2E17LinkerInitialized(%class.Foo* %4, i32 %5) ret void } @@ -35,7 +35,7 @@ define linkonce_odr void @_ZN3FooC2E17LinkerInitialized(%class.Foo* %this, i32) %3 = alloca i32, align 4 store %class.Foo* %this, %class.Foo** %2, align 8 store i32 %0, i32* %3, align 4 - %4 = load %class.Foo** %2 + %4 = load %class.Foo*, %class.Foo** %2 ret void } diff --git a/test/Transforms/GlobalDCE/indirectbr.ll b/test/Transforms/GlobalDCE/indirectbr.ll index 90f1ae4..5671aea 100644 --- a/test/Transforms/GlobalDCE/indirectbr.ll +++ b/test/Transforms/GlobalDCE/indirectbr.ll @@ -9,8 +9,8 @@ entry: br label %L1 L1: - %arrayidx = getelementptr inbounds [3 x i8*]* @L, i32 0, i32 %idx - %l = load i8** %arrayidx + %arrayidx = getelementptr inbounds [3 x i8*], [3 x i8*]* @L, i32 0, i32 %idx + %l = load i8*, i8** %arrayidx indirectbr i8* %l, [label %L1, label %L2] L2: |