X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FTransforms%2FInline%2Fdevirtualize-3.ll;h=76c8150de01ff412789b8b35e31bd75f0447dc8b;hb=912373de69045e491d6a301611ce31a2914a7d43;hp=b49680843fed6b3b58f7ccf2c730cd13b0b9ea35;hpb=198d8baafbfdfcf5a5e219602a5d94ed263973b4;p=oota-llvm.git diff --git a/test/Transforms/Inline/devirtualize-3.ll b/test/Transforms/Inline/devirtualize-3.ll index b49680843fe..76c8150de01 100644 --- a/test/Transforms/Inline/devirtualize-3.ll +++ b/test/Transforms/Inline/devirtualize-3.ll @@ -17,7 +17,7 @@ entry: %tmp = getelementptr inbounds %struct.cont_t, %struct.cont_t* %cont, i32 0, i32 0 ; [#uses=1] %tmp1 = getelementptr inbounds %struct.cont_t, %struct.cont_t* %cont, i32 0, i32 0 ; [#uses=2] store void (i8*, i32)* bitcast (void (%struct.cont_t*, i32)* @quit to void (i8*, i32)*), void (i8*, i32)** %tmp1 - %tmp2 = load void (i8*, i32)** %tmp1 ; [#uses=1] + %tmp2 = load void (i8*, i32)*, void (i8*, i32)** %tmp1 ; [#uses=1] store void (i8*, i32)* %tmp2, void (i8*, i32)** %tmp %tmp3 = getelementptr inbounds %struct.cont_t, %struct.cont_t* %cont, i32 0, i32 1 ; [#uses=1] store i8* null, i8** %tmp3 @@ -51,14 +51,14 @@ entry: define internal void @foo2(%struct.foo_sf_t* %sf, i32 %y) nounwind ssp { entry: %tmp1 = getelementptr inbounds %struct.foo_sf_t, %struct.foo_sf_t* %sf, i32 0, i32 0 ; <%struct.cont_t**> [#uses=1] - %tmp2 = load %struct.cont_t** %tmp1 ; <%struct.cont_t*> [#uses=1] + %tmp2 = load %struct.cont_t*, %struct.cont_t** %tmp1 ; <%struct.cont_t*> [#uses=1] %tmp3 = getelementptr inbounds %struct.cont_t, %struct.cont_t* %tmp2, i32 0, i32 0 ; [#uses=1] - %tmp4 = load void (i8*, i32)** %tmp3 ; [#uses=1] + %tmp4 = load void (i8*, i32)*, void (i8*, i32)** %tmp3 ; [#uses=1] %tmp6 = getelementptr inbounds %struct.foo_sf_t, %struct.foo_sf_t* %sf, i32 0, i32 0 ; <%struct.cont_t**> [#uses=1] - %tmp7 = load %struct.cont_t** %tmp6 ; <%struct.cont_t*> [#uses=1] + %tmp7 = load %struct.cont_t*, %struct.cont_t** %tmp6 ; <%struct.cont_t*> [#uses=1] %conv = bitcast %struct.cont_t* %tmp7 to i8* ; [#uses=1] %tmp9 = getelementptr inbounds %struct.foo_sf_t, %struct.foo_sf_t* %sf, i32 0, i32 1 ; [#uses=1] - %tmp10 = load i32* %tmp9 ; [#uses=1] + %tmp10 = load i32, i32* %tmp9 ; [#uses=1] %mul = mul i32 %tmp10, %y ; [#uses=1] call void %tmp4(i8* %conv, i32 %mul) ret void @@ -67,9 +67,9 @@ entry: define internal void @bar(%struct.cont_t* %c, i32 %y) nounwind ssp { entry: %tmp1 = getelementptr inbounds %struct.cont_t, %struct.cont_t* %c, i32 0, i32 0 ; [#uses=1] - %tmp2 = load void (i8*, i32)** %tmp1 ; [#uses=1] + %tmp2 = load void (i8*, i32)*, void (i8*, i32)** %tmp1 ; [#uses=1] %tmp4 = getelementptr inbounds %struct.cont_t, %struct.cont_t* %c, i32 0, i32 1 ; [#uses=1] - %tmp5 = load i8** %tmp4 ; [#uses=1] + %tmp5 = load i8*, i8** %tmp4 ; [#uses=1] %add = add nsw i32 %y, 5 ; [#uses=1] call void %tmp2(i8* %tmp5, i32 %add) ret void