distill down the essense of this test.
authorChris Lattner <sabre@nondot.org>
Wed, 23 Apr 2008 03:03:42 +0000 (03:03 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 23 Apr 2008 03:03:42 +0000 (03:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50125 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/2008-04-22-ByValBitcast.ll

index a7e2f39b4e2b8b24297111d067e09c07b97ddbbc..020121375feaf7027dd2750dd83a541d04e0c4db 100644 (file)
@@ -7,14 +7,8 @@ target triple = "i386-apple-darwin9"
 
 define void @foo(i8* %context) nounwind  {
 entry:
-       %context_addr = alloca i8*              ; <i8**> [#uses=2]
-       %"alloca point" = bitcast i32 0 to i32          ; <i32> [#uses=0]
-       store i8* %context, i8** %context_addr
-       %tmp = load i8** %context_addr, align 4         ; <i8*> [#uses=1]
-       %tmp1 = bitcast i8* %tmp to %struct.NSRect*             ; <%struct.NSRect*> [#uses=1]
+       %tmp1 = bitcast i8* %context to %struct.NSRect*         ; <%struct.NSRect*> [#uses=1]
        call void (i32, ...)* @bar( i32 3, %struct.NSRect* byval align 4  %tmp1 ) nounwind 
-       br label %return
-return:                ; preds = %entry
        ret void
 }